diff --git a/config/cable.yml b/config/cable.yml index 26e6064b..6be2462c 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -11,3 +11,10 @@ production: channel_prefix: giving_connection_production ssl_params: verify_mode: <%= OpenSSL::SSL::VERIFY_NONE %> + +staging: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: giving_connection_staging + ssl_params: + verify_mode: <%= OpenSSL::SSL::VERIFY_NONE %> \ No newline at end of file diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 29d4eb87..d8c88a8b 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,7 +1,7 @@ REDIS_URL = if Rails.env.production? ENV["REDIS_URL"] || Rails.application.credentials.production[:redis_url] elsif Rails.env.staging? - ENV["REDISCLOUD_URL"] || Rails.application.credentials.staging[:redis_url] + ENV["REDIS_URL"] || Rails.application.credentials.staging[:redis_url] else ENV["REDISCLOUD_URL"] || Rails.application.credentials.development[:redis_url] end