Skip to content

Commit

Permalink
fix redis env in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciapaz committed Oct 22, 2024
1 parent 0581214 commit 275f078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 275f078

Please sign in to comment.