about summary refs log tree commit diff
path: root/config/initializers/sidekiq.rb
blob: 15317397465a7d503c59c83ff8e08b02b28e66e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
host = ENV['REDIS_HOST'] || 'localhost'
port = ENV['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