]> PHS Git Server - phs-api.git/commitdiff
Running the api in production mode.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 15 Sep 2025 05:00:02 +0000 (00:00 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 15 Sep 2025 05:00:02 +0000 (00:00 -0500)
run-api.sh

index a969a793c400cfc6ab54ac8400aa4c7906b298a0..641e66cc2e6aa69e0f112510fde3c30b5e63f77b 100755 (executable)
@@ -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