WIP: Deploying v1.9.9 with Node 18.x on Deb 12
This commit is contained in:
parent
e6969d76ba
commit
e787d62926
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
# defaults file for mastodon
|
||||
system_dep: "['apt-transport-https', 'postgresql', 'python3-psycopg2', 'nginx', 'git', 'wget', 'certbot']"
|
||||
system_dep: "['apt-transport-https', 'postgresql', 'python3-psycopg2', 'nginx', 'git', 'wget', 'certbot', 'npm']"
|
||||
git_url: 'https://github.com/hedgedoc/hedgedoc.git'
|
||||
git_version: '1.9.7'
|
||||
node_version: 'node_16.x' # Node 18 is NOT supported as of May 2023; See https://docs.hedgedoc.org/setup/manual-setup/
|
||||
node_version: 'node_18.x' # Node 18 is NOT supported as of May 2023; See https://docs.hedgedoc.org/setup/manual-setup/
|
||||
node_port: '3000'
|
||||
service: 'example'
|
||||
domains: ['example.domain.org']
|
||||
|
|
|
@ -7,10 +7,16 @@
|
|||
update_cache: yes
|
||||
|
||||
- name: Install node-gyp from npm
|
||||
shell: npm install --global node-gyp
|
||||
shell: npm install --global node-gyp corepack
|
||||
|
||||
- name: Enable yarn (via corepack)
|
||||
shell: "corepack enable; yarn set version classic"
|
||||
shell: "corepack enable"
|
||||
|
||||
- name: Fix permissions
|
||||
file:
|
||||
path: /usr/local/lib/node_modules
|
||||
mode: g+rx,o+rx
|
||||
recurse: yes
|
||||
|
||||
- name: Add UNIX account
|
||||
user:
|
||||
|
|
Loading…
Reference in a new issue