How would one run the following
run npm run start from ecosystem config pm2
for all my apps inside the ecosystem file
folder structure
/root
/servers
/server1
/server 2
ecosystemfile
name: 'xxxx',
script: 'npm start iotservers/xx/app.js',
watch: true,
env: {
NODE_ENV: 'production',
PORT: 1331
},
env_production: {
NODE_ENV: 'production',
PORT: 1331
}
},
script: 'npm',
args: 'run'
Doc : http://pm2.keymetrics.io/docs/usage/application-declaration/#general
exited with code [0] x
x xx via signal [SIGINT] x
x xx PM2 > Script /usr/bin/npm had too many unstable restarts (16). Stopped. x
x xx "errored"