Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
# 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
You can’t perform that action at this time.