Closed ldarren closed 5 years ago
Cool contribution thank you, merged!
If I run only
$ pm2 deploy production
This does not work anymore, I'm getting:
unitech@zion:~/edve/de-project$ pm2 deploy production
--> Deploying to production environment
--> on host xxd.com
○ deploying origin/master
○ executing pre-deploy-local
○ hook pre-deploy
○ fetching updates
○ full fetch
Fetching origin
○ checkout origin/master to master
fatal: A branch named 'master' already exists.
git checkout failed
Deploy failed
1
I've unmerged the PR as long as it's blocking our deployments systems.
If you could make sure that:
pm2 deploy production setup
pm2 deploy production
Work as expected, we will be able to merge it back. Feel free to re-open a PR as that one can't be opened back. Thank you!
works perfectly. sorry for the late answer, merged
this PR fixes Unitech/pm2#3803 this PR doesn't break any existing api
what this PR does:
if test fetch != "fast";
always return true problemcheckout
instead ofhard reset
for deploymentref
options to have a optional branch nameref
example following command deploy tagprod-v1.0.1
to new branch namedv1.0.1
if the optional branch name omitted, the tag will be deploy to branch named
prod-v1.0.1
the
ref
command can also use for branch deployment