Created
March 27, 2014 02:58
-
-
Save alChaCC/9799192 to your computer and use it in GitHub Desktop.
lib/capistrano/tasks/restart.cap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
desc "Restart passenger process" | |
task :restart do | |
on roles(:web), in: :sequence, wait: 5 do | |
execute "touch", "#{release_path}/tmp/restart.txt" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment