Don't start production instances if backend folder doesn't exist

This commit is contained in:
wiz 2021-02-25 02:38:38 +09:00
parent 75b8ec855b
commit 6a7d5fbe6a
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -3,6 +3,6 @@ export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
for site in mainnet liquid testnet bisq signet
do
cd "${HOME}/${site}/backend/"
cd "${HOME}/${site}/backend/" && \
screen -dmS "${site}" sh -c 'while true;do npm run start-production;sleep 1;done'
done