This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-11-07 23:20:52 +01:00
|
|
|
host = ENV.fetch('REDIS_HOST') { 'localhost' }
|
|
|
|
port = ENV.fetch('REDIS_PORT') { 6379 }
|
2017-01-17 12:00:03 +01:00
|
|
|
password = ENV.fetch('REDIS_PASSWORD') { false }
|
2017-04-15 02:21:13 +02:00
|
|
|
db = ENV.fetch('REDIS_DB') { 0 }
|
2016-03-25 02:50:48 +01:00
|
|
|
|
|
|
|
Sidekiq.configure_server do |config|
|
2017-04-15 02:21:13 +02:00
|
|
|
config.redis = { host: host, port: port, db: db, password: password }
|
2016-03-25 02:50:48 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Sidekiq.configure_client do |config|
|
2017-04-15 02:21:13 +02:00
|
|
|
config.redis = { host: host, port: port, db: db, password: password }
|
2016-03-25 02:50:48 +01:00
|
|
|
end
|