Skip to content

Instantly share code, notes, and snippets.

@seanbehan
Forked from moskvin/resque.rake
Created September 21, 2012 17:39
Show Gist options
  • Save seanbehan/3762850 to your computer and use it in GitHub Desktop.
Save seanbehan/3762850 to your computer and use it in GitHub Desktop.
Fix for resque connection issue
require 'resque/tasks'
task "resque:setup" => :environment do
ENV['QUEUE'] = '*'
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment