Files
flyer-crawler.projectium.com/ecosystem.config.cjs
Torben Sorensen c18efb1b60
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 32m55s
fix: add PORT=3001 to production PM2 config to prevent EADDRINUSE crashes
Root cause: server.ts defaults to port 3001 when PORT env var is not set.
PM2 cluster mode shares a single port across all instances, but the PORT
env variable was missing from ecosystem.config.cjs, causing port binding
conflicts.

Fix: Added PORT: '3001' to production API env configuration in
ecosystem.config.cjs. Test environment already had PORT: 3002 set.

Port allocation on projectium.com:
- 3000: Gitea (system)
- 3001: flyer-crawler production
- 3002: flyer-crawler test
- 3003: stock-alert production
- 3004: stock-alert test

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-18 12:55:39 -08:00

4.4 KiB