Improve testing on docker
This commit is contained in:
parent
b96ce06d94
commit
ef1903381b
6 changed files with 16 additions and 13 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# Initializer to configure resque daemon
|
||||
if ENV['REDIS_URL']
|
||||
if Rails.env.test?
|
||||
Resque.inline = true
|
||||
elsif 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)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue