1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #629 from dtaniwaki/prevent_inconsistence

Stop sidekiq before rails update code
This commit is contained in:
Mike Perham 2013-01-18 09:46:15 -08:00
commit 56b3c8202a

View file

@ -2,7 +2,7 @@ Capistrano::Configuration.instance.load do
before "deploy:update_code", "sidekiq:quiet"
after "deploy:stop", "sidekiq:stop"
after "deploy:start", "sidekiq:start"
after "deploy:restart", "sidekiq:restart"
before "deploy:restart", "sidekiq:restart"
_cset(:sidekiq_cmd) { "#{fetch(:bundle_cmd, "bundle")} exec sidekiq" }
_cset(:sidekiqctl_cmd) { "#{fetch(:bundle_cmd, "bundle")} exec sidekiqctl" }