cleanup 2
This commit is contained in:
parent
092bc10b2c
commit
d02317b6f6
2
Rakefile
2
Rakefile
|
@ -8,8 +8,6 @@ require 'resque_scheduler/tasks'
|
||||||
|
|
||||||
# This fixes connection fail with Postgres server on new fork:
|
# This fixes connection fail with Postgres server on new fork:
|
||||||
task "resque:setup" => :environment do
|
task "resque:setup" => :environment do
|
||||||
require 'resque'
|
|
||||||
require 'resque-scheduler'
|
|
||||||
Resque.after_fork do
|
Resque.after_fork do
|
||||||
Resque.redis.client.reconnect
|
Resque.redis.client.reconnect
|
||||||
Resque.schedule = YAML.load_file(File.join(Rails.root, 'config/resque_schedule.yml')) # load the schedule
|
Resque.schedule = YAML.load_file(File.join(Rails.root, 'config/resque_schedule.yml')) # load the schedule
|
||||||
|
|
Loading…
Reference in New Issue