Update Notesnook
This commit is contained in:
parent
8002eb0d7e
commit
2db8faeaa4
@ -20,7 +20,7 @@ msg_ok "Installed Dependencies"
|
|||||||
NODE_MODULE="yarn" install_node_and_modules
|
NODE_MODULE="yarn" install_node_and_modules
|
||||||
|
|
||||||
msg_info "Installing Notesnook (Patience)"
|
msg_info "Installing Notesnook (Patience)"
|
||||||
fetch_and_deploy_gh_release "streetwriters/notesnook"
|
fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball"
|
||||||
cd /opt/notesnook
|
cd /opt/notesnook
|
||||||
export NODE_OPTIONS="--max-old-space-size=2560"
|
export NODE_OPTIONS="--max-old-space-size=2560"
|
||||||
mkdir -p certs
|
mkdir -p certs
|
||||||
@ -39,18 +39,15 @@ After=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/notesnook
|
WorkingDirectory=/opt/notesnook
|
||||||
ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build \\
|
ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build --ssl-cert certs/cert.pem --ssl-key certs/key.pem
|
||||||
--ssl-cert certs/cert.pem \\
|
|
||||||
--ssl-key certs/key.pem
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.targetnp
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now notesnook
|
systemctl enable -q --now notesnook
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user