Trying to fix resque issue
This commit is contained in:
parent
c5eba169cd
commit
64db738f9d
|
@ -27,3 +27,5 @@ Resque::Server.use Authentication
|
|||
|
||||
# Mailer
|
||||
Resque::Mailer.excluded_environments = []
|
||||
|
||||
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
require 'resque/tasks'
|
||||
|
||||
task "resque:setup" => :environment do
|
||||
Resque.after_fork do
|
||||
Resque.redis.client.reconnect
|
||||
end
|
||||
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
|
||||
end
|
||||
|
||||
desc "Alias for resque:work (To run workers on Heroku)"
|
||||
|
|
Loading…
Reference in a new issue