Skip to content

Instantly share code, notes, and snippets.

@alChaCC
Created March 27, 2014 02:58
Show Gist options
  • Save alChaCC/9799192 to your computer and use it in GitHub Desktop.
Save alChaCC/9799192 to your computer and use it in GitHub Desktop.
lib/capistrano/tasks/restart.cap
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