This repository was archived by the owner on Jul 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88production :
99 adapter : redis
10- url : <%= ENV.fetch("REDIS_URL ") { "redis://localhost:6379/1" } %>
10+ url : <%= ENV.fetch("REDIS_QUEUE_URL ") { "redis://localhost:6379/1" } %>
1111 channel_prefix : maybe_marketing_production
Original file line number Diff line number Diff line change 6666 config . log_level = ENV . fetch ( "RAILS_LOG_LEVEL" , "info" )
6767
6868 # Use a different cache store in production.
69- config . cache_store = :redis_cache_store , { url : ENV [ "CACHE_REDIS_URL " ] }
69+ config . cache_store = :redis_cache_store , { url : ENV [ "REDIS_CACHE_URL " ] }
7070
7171 # Use a real queuing backend for Active Job (and separate queues per environment).
7272 # config.active_job.queue_adapter = :resque
Original file line number Diff line number Diff line change 11if defined? ( RailsPerformance )
22 RailsPerformance . setup do |config |
33 # Redis configuration
4- config . redis = Redis . new ( url : ENV [ "REDIS_URL " ] . presence || "redis://127.0.0.1:6379/0" )
4+ config . redis = Redis . new ( url : ENV [ "REDIS_QUEUE_URL " ] . presence || "redis://127.0.0.1:6379/0" )
55
66 # All data we collect
77 config . duration = 4 . hours
Original file line number Diff line number Diff line change 22require "sidekiq-cron"
33
44Sidekiq . configure_server do |config |
5- config . redis = { url : ENV . fetch ( "REDIS_URL " , "redis://localhost:6379/0" ) }
5+ config . redis = { url : ENV . fetch ( "REDIS_QUEUE_URL " , "redis://localhost:6379/0" ) }
66
77 # Load cron jobs from schedule hash
88 schedule_file = "config/schedule.yml"
1313end
1414
1515Sidekiq . configure_client do |config |
16- config . redis = { url : ENV . fetch ( "REDIS_URL " , "redis://localhost:6379/0" ) }
16+ config . redis = { url : ENV . fetch ( "REDIS_QUEUE_URL " , "redis://localhost:6379/0" ) }
1717end
You can’t perform that action at this time.
0 commit comments