Rollback capersano to the old version?

cap deploy:rollback 

I know this is returning to the latest revision. How can I roll back to an older version?

+7
source share
4 answers

By executing cap deploy:rollback , you roll back to the previous version.

If you continue with cap deploy:rollback , you will reach the correct release version.

This is not an ideal solution, but it works.

+6
source

Rollback to a specific version

 cap deploy:rollback -s previous_release=/path/to/desired_release 
+3
source

As far as I can tell, you cannot rollback to a specific old version, but you can deploy it to a specific branch, revision or tag, etc.

For git:

 cap -s branch=my_branch deploy cap -s tag=my_tag deploy 

For svn:

 cap -s repository=http://blah.blah.blah deploy cap -s revision=123 deploy 
+2
source

cap deploy:rollback:code will return you to the previously deployed version

0
source

All Articles