Skip to content
Snippets Groups Projects
Commit c68540e9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix resque for postgres

parent 19cb29e4
No related branches found
No related tags found
5 merge requests!104094 0 stable,!2553Wiki grammar patch,!2439Documentation: don't setuid the repositories on installation,!2422updated instructions fixed up references of mysql and postgresql,!2415Reconnect redis after unicorn fork
This commit is part of merge request !10409. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -27,3 +27,5 @@ Resque::Server.use Authentication
 
# Mailer
Resque::Mailer.excluded_environments = []
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
Loading
Loading
@@ -4,6 +4,7 @@ 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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment