Add Unfurl to the prod installer

This commit is contained in:
Stephan Oeste
2022-07-29 20:13:48 +02:00
parent c9157c974f
commit 0127eed3bf
5 changed files with 211 additions and 45 deletions

6
production/unfurl-start Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env zsh
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
cd "${HOME}/unfurl/unfurler/" && \
screen -dmS "unfurl" sh -c 'while true;do npm run start-production;sleep 1;done'