Skip to content

Instantly share code, notes, and snippets.

@mirek
Last active April 3, 2018 12:05
Show Gist options
  • Save mirek/7159245 to your computer and use it in GitHub Desktop.
Save mirek/7159245 to your computer and use it in GitHub Desktop.
Passenger restart task in Capistrano 3.x with Rails 4.x
namespace :deploy do
after :restart, :restart_passenger do
on roles(:web), in: :groups, limit: 3, wait: 10 do
within release_path do
execute :touch, 'tmp/restart.txt'
end
end
end
after :finishing, 'deploy:restart_passenger'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment