diff options
-rw-r--r-- | config/initializers/sidekiq.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 0c051a5..55ee0f6 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,3 +1,13 @@ +require 'sidekiq' + +Sidekiq.configure_server do |config| + config.redis = { url: ENV.fetch("REDIS_URL", 'localhost:6379' } +end + +Sidekiq.configure_client do |config| + config.redis = { url: ENV.fetch("REDIS_URL", 'localhost:6379' } +end + if Rails.env.production? Sidekiq::Logging.logger.level = Logger::WARN end |