Open VeXell opened 1 year ago
Maybe try adding this to config: [... instances: 2 ]
@inspiraller I have dynamic cases when i have instances:4
in the config (and inside docker container) and when i deploy it to the staging, i want to run pm2 with the same config but less instances (because staging has less resources). My patch (pull request) solve this problem. This is issue inside pm2.
What's going wrong?
I am using docker container and to run PM2 with different count of instances depends on environment (prod or staging). In both cases i have common ecosystem config:
And command in docker
When i run docker container PM2 spawns only 1 instance instead of 2. I think it might be a problem in that file https://github.com/Unitech/pm2/blob/5e708459aca32903fd363230e24c37b3e38bb48d/lib/API.js#L1012
Because in that case instances has
String
typeSupporting information