about summary refs log tree commit diff
path: root/config/initializers/sidekiq.rb
blob: 63fdb3f1658890743c7aa9770352fb0c42c27df6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
host = ENV.fetch('REDIS_HOST') { 'localhost' }
port = ENV.fetch('REDIS_PORT') { 6379 }

Sidekiq.configure_server do |config|
  config.redis = { host: host, port: port }
end

Sidekiq.configure_client do |config|
  config.redis = { host: host, port: port }
end