1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/initializers/sidekiq.rb

27 lines
654 B
Ruby
Raw Normal View History

2018-12-07 08:44:51 -05:00
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
2018-12-08 22:56:06 -05:00
client_conf = Rails.application.settings :sidekiq_client
server_conf = Rails.application.settings :sidekiq_server
2018-12-07 08:44:51 -05:00
Sidekiq.configure_client do |config|
2018-12-08 21:47:19 -05:00
config.redis = {
2019-09-09 18:56:22 -04:00
host: client_conf[:host],
port: client_conf[:port],
db: client_conf[:db],
password: client_conf[:password],
ssl_params: client_conf[:ssl],
2018-12-08 21:47:19 -05:00
}
2018-12-07 08:44:51 -05:00
end
2018-12-08 21:49:42 -05:00
Sidekiq.configure_server do |config|
config.redis = {
2019-09-09 18:56:22 -04:00
host: server_conf[:host],
port: server_conf[:port],
db: server_conf[:db],
password: server_conf[:password],
ssl_params: client_conf[:ssl],
2018-12-08 21:49:42 -05:00
}
end