I have the problem from CI that I don't know if pm2 deploy has already been called with setup. Calling it a second time currently results in an error when it tries to clone the repo:
Local PM2 version: 4.2.0
○ hook pre-setup
○ running setup
○ cloning git@deployment:pke/xstate.io.git
○ full fetch
fatal: destination path '/var/www/restlr.io/source' already exists and is not an empty directory.
failed to clone
Deploy failed
Would it be possible to gracefully ignore this if the directory already exists?
I have the problem from CI that I don't know if
pm2 deploy
has already been called withsetup
. Calling it a second time currently results in an error when it tries to clone the repo:Would it be possible to gracefully ignore this if the directory already exists?