Created
November 1, 2013 13:58
-
-
Save jtadeulopes/7265830 to your computer and use it in GitHub Desktop.
Capistrano task for puma
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 :puma do | |
desc "Start Puma" | |
task :start, :except => { :no_release => true } do | |
run "sudo start #{application}" | |
end | |
after "deploy:start", "puma:start" | |
desc "Stop Puma" | |
task :stop, :except => { :no_release => true } do | |
run "sudo stop #{application}" | |
end | |
after "deploy:stop", "puma:stop" | |
desc "Restart Puma" | |
task :restart, roles: :app do | |
run "sudo restart #{application}" | |
end | |
after "deploy:restart", "puma:restart" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment