Retrospring/config/initializers/15_sidekiq.rb

9 lines
218 B
Ruby
Raw Normal View History

redis_url = ENV.fetch("REDIS_URL") { APP_CONFIG["redis_url"] }
2014-12-12 08:35:16 -08:00
Sidekiq.configure_server do |config|
config.redis = { url: redis_url }
2014-12-12 08:35:16 -08:00
end
Sidekiq.configure_client do |config|
config.redis = { url: redis_url }
2014-12-12 08:35:16 -08:00
end