diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh index 11f0644..a2d1598 100644 --- a/scripts/install_dependencies.sh +++ b/scripts/install_dependencies.sh @@ -2,13 +2,11 @@ cd /home/ubuntu/rp-api sudo yarn -sudo pm2 describe appname 2>&1 /dev/null + +sudo pm2 describe RP_API 2>&1 /dev/null RUNNING=$? -if [ "${RUNNING}" -eq 0 ]; then +if [ "${RUNNING}" -eq 1 ]; then sudo pm2 start build/app.js --name RP_API -i 2 --wait-ready --listen-timeout 10000 fi; - - -