With Capistrano, how to rollback to a specific release?
My server's folder has a /release folder, how can I rollback to a specific one?
Is it possible for me to get a list of releases on my computer locally?
I'm using GIT and this didn't work:
cap deploy -s revision:HASH
Update The answer was written in the times of capistrano version 2. With the current capistrano version 3 you can achieve the same by using
Please refer to the Capistrano documentation for further details.
Thanks to @codenoob for pointing this out!
Old version
The following should work:
Example:
Lets say you have deployed your app to
/srv/some_app
and you have the following releases/directory structure:If you now want to go back from the current (2012123) release to the 2010123 one, you would use
Capistrano names the release directories by date/time.
From the capistrano shell, you can connect to all the machines you are deploying to, and examine them from there:
Another option is
from http://capistranorb.com/documentation/getting-started/rollbacks/#