rollback changes
This commit is contained in:
parent
7919fb955b
commit
a18703242c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue