Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

capistrano rollback to an old version?

Tags:

capistrano

cap deploy:rollback

I know this rolls back to the last revision. How can can I rollback to an older revision?

like image 822
djburdick Avatar asked Apr 11 '11 00:04

djburdick


2 Answers

By executing cap deploy:rollback, you rollback to the previous release.

If you keep executing cap deploy:rollback, you will reach the release version you need.

It is not the perfect solution, but it works.

like image 144
Francisco Avatar answered Sep 28 '22 08:09

Francisco


To rollback to a specific release

cap deploy:rollback -s previous_release=/path/to/desired_release
like image 22
Santhosh Avatar answered Sep 28 '22 07:09

Santhosh