From ae4447c19be7d8e9b122945492a7366153981c37 Mon Sep 17 00:00:00 2001 From: Alex Yang <32620988+DatProJack@users.noreply.github.com> Date: Wed, 3 Jul 2024 01:41:28 -0400 Subject: [PATCH] fixed install_dependencies.sh --- scripts/install_dependencies.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; - - -