Unitech / pm2-deploy

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

adding a new host to an environment with hosts that are already setup then running deploy setup fails #25

Open chasechou opened 10 years ago

chasechou commented 10 years ago

In ecosystem.json, if the production environment has 3 hosts already setup and running fine, then a 4th host is added to production and "pm2 deploy production setup" is executed, it will fail with:

fatal: destination path '/iv/production/source' already exists and is not an empty directory.

That is due to setup already completed on the 3 other existing hosts.

One workaround would be to always add new hosts to the beginning of the array so the new hosts will complete. This will setup the new host then fail on the hosts that have already been setup. But at least it works.

NiklasMerz commented 8 years ago

I have the same problem