use a sensible default if no redis.
This commit is contained in:
parent
d70c3a9bf1
commit
a524dd0325
1 changed files with 6 additions and 1 deletions
|
@ -1,2 +1,7 @@
|
||||||
# Initializer to configure resque daemon
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue