Skip to content

Instantly share code, notes, and snippets.

View medhabansal's full-sized avatar

Medha Bansal medhabansal

  • New Delhi, India
View GitHub Profile
@mirek
mirek / passenger.rake
Last active April 3, 2018 12:05
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