discourse/config/initializers/sidekiq.rb

5 lines
193 B
Ruby
Raw Normal View History

sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
2013-02-06 03:16:51 +08:00
2013-03-23 22:49:50 +08:00
Sidekiq.configure_server { |config| config.redis = sidekiq_redis }
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }