Hello,
I'm looking for an easy way to go back to the previous release if something goes wrong with the last realease in Capistrano
Is there any command like "cap goback" to undo the last deploy? (thus updating the current symlink to it's old location)
Is this built-in or I just have to make a task myself?
Here's my recipe:
set :user, "root"
set :use_sudo, false
set :domain, "www.domain.info"
set :deploy_to, "/home/beta2"
set :current_dir, "public_html"
set :scm, "git"
set :repository, "[email protected]:user/ac.git"
set :deploy_via, :remote_cache
set :scm_verbose, true
set :git_enable_submodules, 1
role :web, domain
role :app, domain
task :link_shared_directories do
run "ln -s #{shared_path}/photos #{release_path}/photos"
end
after "deploy:update_code", :link_shared_directories