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
1 changed files with 6 additions and 1 deletions

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