retrospring/config/initializers/15_sidekiq.rb
2024-09-05 10:23:01 +02:00

9 lines
219 B
Ruby

redis_url = ENV.fetch("REDIS_URL") { APP_CONFIG["redis_url"] }
Sidekiq.configure_server do |config|
config.redis = { url: redis_url }
end
Sidekiq.configure_client do |config|
config.redis = { url: redis_url }
end