diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb index 863664501..ac69e61fb 100644 --- a/config/initializers/redis.rb +++ b/config/initializers/redis.rb @@ -1,5 +1,5 @@ -if Rails.env.production? +if ENV["REDIS_URL"] $redis = # rubocop:disable Style/GlobalVars - Redis.new(url: ENV["REDIS_URL"], + RedisClient.new(url: ENV["REDIS_URL"], ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE}) end diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 5ef4c0373..a582ee753 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,4 +1,4 @@ -if Rails.env.production? +if ENV["REDIS_URL"] Sidekiq.configure_server do |config| config.redis = { url: ENV["REDIS_URL"],