prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m3s

This commit is contained in:
2025-11-22 21:47:08 -08:00
parent a2d19abf30
commit ebf634f2d3
5 changed files with 18 additions and 11 deletions

View File

@@ -128,4 +128,11 @@ jobs:
# It will START the process if it's not running, or RELOAD it if it is.
# We also add `&& pm2 save` to persist the process list across server reboots.
pm2 startOrReload ecosystem.config.cjs --env production && pm2 save
echo "Backend server reloaded successfully."
echo "Backend server reloaded successfully."
- name: Show PM2 Environment for Production
run: |
echo "--- PM2 Environment for flyer-crawler-app ---"
# This command inspects the running process and shows its environment variables.
# It helps verify that the correct .env file or ecosystem variables are being used.
pm2 describe flyer-crawler-app | grep -E 'DB_DATABASE|DB_NAME|DB_USER|DB_HOST' || echo "Could not find process or DB variables."