1 2 3 4 5 6 7 8 9
require 'sidekiq' Sidekiq.configure_server do |config| config.redis = { url: ENV.fetch("REDIS_URL", 'redis://localhost:6379') } end Sidekiq.configure_client do |config| config.redis = { url: ENV.fetch("REDIS_URL", 'redis://localhost:6379') } end