Improve testing on docker

This commit is contained in:
wvengen 2020-07-27 17:39:56 +02:00
parent b96ce06d94
commit ef1903381b
6 changed files with 16 additions and 13 deletions

View file

@ -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)'