From: charleswrayjr Date: Mon, 15 Sep 2025 05:00:02 +0000 (-0500) Subject: Running the api in production mode. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=43e563cf039382169f0a5af051430db02cf2b376;p=phs-api.git Running the api in production mode. --- 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