2011-12-12 23:03:38 +01:00
|
|
|
require 'resque/tasks'
|
2012-10-08 22:19:07 +02:00
|
|
|
|
|
|
|
task "resque:setup" => :environment do
|
2012-12-25 14:53:50 +01:00
|
|
|
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
|
2012-10-08 22:19:07 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
desc "Alias for resque:work (To run workers on Heroku)"
|
|
|
|
task "jobs:work" => "resque:work"
|