Created
March 2, 2011 11:03
-
-
Save vrybas/850779 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
... | |
# Bluepill related tasks | |
namespace :bluepill do | |
desc "Stop processes that bluepill is monitoring and quit bluepill" | |
task :quit, :roles => [:app] do | |
#run "cd #{release_path} && rvmsudo bundle exec bluepill stop" | |
#run "cd #{release_path} && rvmsudo bundle exec bluepill quit" | |
run "rvmsudo bluepill stop" | |
run "rvmsudo bluepill quit" | |
end | |
desc "Load bluepill configuration and start it" | |
task :start, :roles => [:app] do | |
#run "cd #{release_path} && rvmsudo bundle exec bluepill -c #{shared_path} load #{release_path}/config/production.pill" | |
run "rvmsudo bluepill -c #{shared_path} load #{release_path}/config/production.pill" | |
end | |
desc "Prints bluepills monitored processes statuses" | |
task :status, :roles => [:app] do | |
run "cd #{release_path} && rvmsudo bundle exec bluepill status" | |
end | |
end | |
... | |
after "deploy:update", "bluepill:quit", "bluepill:start" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment