use a sensible default if no redis.

This commit is contained in:
Tom Carchrae 2019-03-24 08:48:13 -07:00 committed by wvengen
parent d70c3a9bf1
commit a524dd0325

View file

@ -1,2 +1,7 @@
# Initializer to configure resque daemon
Resque.redis = ENV['REDIS_URL'] if ENV['REDIS_URL']
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