Commit 78046e12 by liangyuzhe

使用god

parent 19978f5a
...@@ -69,15 +69,15 @@ namespace :deploy do ...@@ -69,15 +69,15 @@ namespace :deploy do
end end
end end
# desc 'Restart application' desc 'Restart application'
# task :restart do task :restart do
# on roles(:app), in: :sequence, wait: 5 do on roles(:app), in: :sequence, wait: 5 do
# # invoke 'sidekiq:god_restart' # invoke 'sidekiq:god_restart'
# puts "restart sidekiq." puts "restart sidekiq."
# invoke 'sidekiq:restart' invoke 'sidekiq:restart'
# sleep 10 sleep 10
# end end
# end end
before :starting, :check_revision before :starting, :check_revision
after :finishing, :compile_assets after :finishing, :compile_assets
after :finishing, :restart after :finishing, :restart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment