[refs #510] Add bluepill stop, start and restart to depoy and stop recipe
This commit is contained in:
parent
ae6a3e6506
commit
a266e57219
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue