forgeplus/config/initializers/sidekiq.rb

11 lines
256 B
Ruby

redis_config = Rails.application.config_for(:redis)
sidekiq_url = redis_config["url"]
Sidekiq.configure_server do |config|
config.redis = { url: sidekiq_url }
end
Sidekiq.configure_client do |config|
config.redis = { url: sidekiq_url }
end