Problem running express app with pm2 using ecosystem config file
问题 When I run my Node.js express app using node command everything works fine! When using pm2 server ./bin/www` my pm2 status is something like this: And my app works in this situation. Also when I use pm2 start bin "./bin/www" -i 0 my pm2 list shows: And yet again my app works. But using following config file: module.exports = { apps: [{ name: 'cdn', script: './bin/www', instances: 0, exec_mode: 'cluster', watch: true, env: { NODE_ENV: 'production', PORT: process.env.PORT || '5555', } }] }; the