From 43e563cf039382169f0a5af051430db02cf2b376 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 15 Sep 2025 00:00:02 -0500 Subject: [PATCH] Running the api in production mode. --- run-api.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run-api.sh b/run-api.sh index a969a79..641e66c 100755 --- a/run-api.sh +++ b/run-api.sh @@ -10,11 +10,11 @@ if [ "$env" == "TEST" ]; then npm install; npx pm2 start api.config.cjs --no-daemon --env TEST elif [ "$env" == "PRODUCTION" ]; then echo "PHS API Production Stack" - npm install; npm run start-debug -# npm install; -# npx babel src --out-dir src --extensions .jsx; -# cd /usr/src/app -# npx pm2 start api.config.cjs --no-daemon --env PRODUCTION +# npm install; npm run start-debug + npm install; + npx babel src --out-dir src --extensions .jsx; + cd /usr/src/app + npx pm2 start api.config.cjs --no-daemon --env PRODUCTION else echo "PHS API Dev Stack" npm install; npm run start-debug -- 2.43.0