[refs #510] Add bluepill stop, start and restart to depoy and stop recipe

This commit is contained in:
konstantin.grabar 2012-06-07 13:27:19 +04:00
parent ae6a3e6506
commit a266e57219
2 changed files with 10 additions and 1 deletions

View File

@ -83,7 +83,11 @@ end
after "deploy:finalize_update", "deploy:symlink_all" after "deploy:finalize_update", "deploy:symlink_all"
after "deploy:update_code", "deploy:migrate" after "deploy:update_code", "deploy:migrate"
after "deploy:setup", "deploy:symlink_pids" after "deploy:setup", "deploy:symlink_pids"
after "deploy:restart", "bluepill:start" # "bluepill:processes:restart_dj" # "bluepill:restart"
# Bluepill
after "deploy:restart", "bluepill:restart" # "bluepill:processes:restart_dj" # "bluepill:restart"
after "deploy:start", "bluepill:start"
after "deploy:stop", "bluepill:stop"
# DJ # DJ
after "deploy:stop", "delayed_job:stop" after "deploy:stop", "delayed_job:stop"

View File

@ -47,5 +47,10 @@ Capistrano::Configuration.instance(:must_exist).load do
task :restart, :roles => [:app] do task :restart, :roles => [:app] do
processes.stop; stop; start processes.stop; stop; start
end end
desc "Stop bluepill and monitored services"
task :stop, :roles => [:app] do
processes.stop
end
end end
end end