Unitech / pm2-deploy

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

Single app deployment/restart #135

Closed mjansing closed 6 years ago

mjansing commented 7 years ago

Hey folks,

i use pm2 to deploy a bunch of node services to a remote hosts. These services are managed in a single git repository. Is there a way to trigger a new deployment and only restart specific services (the updated ones)?

Currently i use a post-deploy hook with pm2 startOrRestart ecosystem.json which restarts all declared apps. This issue maybe corresponds with https://github.com/Unitech/pm2-deploy/issues/132

phra commented 6 years ago

you can use startOrReload if all of your application are running in cluster mode to achieve 0s downtime during the deploy.

closing this in favor of #132