11 lines
221 B
Ruby
11 lines
221 B
Ruby
require 'resque/tasks'
|
|
|
|
task "resque:setup" => :environment do
|
|
Resque.after_fork do
|
|
Resque.redis.client.reconnect
|
|
end
|
|
end
|
|
|
|
desc "Alias for resque:work (To run workers on Heroku)"
|
|
task "jobs:work" => "resque:work"
|