Skip to content

Instantly share code, notes, and snippets.

@vrybas
Created March 2, 2011 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrybas/850779 to your computer and use it in GitHub Desktop.
Save vrybas/850779 to your computer and use it in GitHub Desktop.
...
# 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