Unitech / pm2-deploy

Deploy part of PM2
http://pm2.keymetrics.io/docs/usage/deployment/
MIT License
178 stars 71 forks source link

Deploys even if npm errors? #78

Open RHavar opened 8 years ago

RHavar commented 8 years ago

I had a deploy go through, even though npm install failed. I think this might be the culprit:

should it be npm install && pm2 startOrRestart ecosystem.json --env production ?

Unitech commented 8 years ago

You are right

Doc update: https://github.com/pm2-hive/pm2-hive.github.io/commit/845a5704d419c8e2fa08dabc0b28f6be2befa888

PM2 samples update: https://github.com/Unitech/pm2/commit/d44ae5a4f93a0191a63b2bdb3d6ff17491d4faf0