Last active
April 3, 2018 12:05
-
-
Save mirek/7159245 to your computer and use it in GitHub Desktop.
Passenger restart task in Capistrano 3.x with Rails 4.x
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 | |
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