prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m7s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m7s
This commit is contained in:
@@ -132,7 +132,9 @@ jobs:
|
||||
|
||||
- name: Show PM2 Environment for Production
|
||||
run: |
|
||||
echo "--- PM2 Environment for flyer-crawler-api ---"
|
||||
# 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-api | grep -E 'DB_DATABASE|DB_NAME|DB_USER|DB_HOST' || echo "Could not find process or DB variables."
|
||||
echo "--- Displaying recent PM2 logs for flyer-crawler-api ---"
|
||||
# After a reload, the server restarts. We'll show the last 20 lines of the log
|
||||
# to see the startup messages, which include the environment variables loaded from the .env file.
|
||||
sleep 5 # Wait a few seconds for the app to start and log its output.
|
||||
pm2 describe flyer-crawler-api || echo "Could not find pm2 process."
|
||||
pm2 logs flyer-crawler-api --lines 20 --nostream || echo "Could not find pm2 process."
|
||||
Reference in New Issue
Block a user