9 lines
234 B
Ruby
9 lines
234 B
Ruby
require 'resque/tasks'
|
|
|
|
task "resque:setup" => :environment do
|
|
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
|
|
end
|
|
|
|
desc "Alias for resque:work (To run workers on Heroku)"
|
|
task "jobs:work" => "resque:work"
|