Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Possible to run multiple instances of same app on different ports #322
I wanted to inquire whether it's possible to run my app.js multiple clusters like so:
app.js Cluster1 port 80
My hosting provider, Rackspace, has advised me to try to set up this way.
Is this possible to do this under pm2 and have my app.js be running multiple clusters under different ports?
Thanks in advance for your help.
... where NODE_PORT is an arbitrary name that you add as
(-f flag is necessary to force re-execution, since pm2 will complain otherwise)