foodsoft/config/initializers/resque.rb

8 lines
237 B
Ruby
Raw Normal View History

# Initializer to configure resque daemon
2019-03-24 16:48:13 +01:00
if ENV['REDIS_URL']
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