frontend work !
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m44s

This commit is contained in:
2025-11-22 12:59:53 -08:00
parent 82d38b9e52
commit 2cdba475bd
2 changed files with 17 additions and 4 deletions

View File

@@ -159,8 +159,7 @@ jobs:
echo "Installing production dependencies and restarting server..."
cd /var/www/flyer-crawler.projectium.com
npm install --omit=dev # Install only production dependencies
# Use pm2 to reload the application with zero downtime.
# This assumes you have a pm2 process named 'flyer-crawler-api' configured on your server.
# If not, you would use `pm2 start npm --name "flyer-crawler-api" -- run start` for the first time.
pm2 reload flyer-crawler-api
# Use `startOrReload` with the ecosystem file. This is the standard, idempotent way to deploy.
# It will START the process if it's not running, or RELOAD it if it is.
pm2 startOrReload ecosystem.config.js --env production
echo "Backend server reloaded successfully."