server localhost:5000;
server localhost:5001;
}
Now if I want to run 2 instances of PM2 server one on port 5000 and another on port 5001.
pm2 start app.js -i 2
Will above command automatically start instances on 5000 and 5001 port? or do I need to pass NODE_PORT env?
so what you have to do is to launch each app.js individually pointing to your preferred ports
Обсуждают сегодня