rollback changes

This commit is contained in:
Vokhmin Alexey V 2014-02-26 00:49:51 +04:00
parent 7919fb955b
commit a18703242c
2 changed files with 7 additions and 6 deletions

View File

@ -14,12 +14,6 @@ Capistrano::Configuration.instance(:must_exist).load do
start_workers
end
task :setup => :environment do
Resque.after_fork do
Resque.redis.client.reconnect
end
end
def rails_env
fetch(:rails_env, false) ? "RAILS_ENV=#{fetch(:rails_env)}" : ''
end

View File

@ -7,4 +7,11 @@ namespace :resque do
end
system("kill -QUIT #{pids.join(' ')}") if pids.size > 0
end
task setup: :environment do
Resque.after_fork do
Resque.redis.client.reconnect
end
end
end