foodsoft/config/initializers/resque.rb

10 lines
282 B
Ruby
Raw Permalink Normal View History

# 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