2015-04-26 15:20:05 +02:00
|
|
|
# Initializer to configure resque daemon
|
2020-07-27 17:39:56 +02:00
|
|
|
if Rails.env.test?
|
|
|
|
Resque.inline = true
|
|
|
|
elsif ENV['REDIS_URL']
|
2019-03-24 16:48:13 +01:00
|
|
|
Resque.redis = ENV['REDIS_URL']
|
|
|
|
else
|
|
|
|
puts 'WARNING: redis is not installed, so Resque is using inline method. (not recommended for production)'
|
|
|
|
Resque.inline = true
|
|
|
|
end
|