Sha256: b3093e22064b1ab8bcfc20bfbd201b707ce649947a94986b150976803af5cba2
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true require 'sidekiq' require 'redis-namespace' require 'hiredis' redis_config = { url: ENV.fetch('REDIS_URL') { 'redis://localhost:6379/0' }, namespace: "#{Rails.application.class.parent_name.parameterize}-#{Rails.env}", driver: 'hiredis' } Sidekiq.configure_client do |config| config.redis = redis_config.dup end Sidekiq.configure_server do |config| config.redis = redis_config.dup end ActiveJob::Base.queue_adapter = :sidekiq if defined?(ActiveJob)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eivo-rails-sidekiq-0.0.2 | config/initializers/sidekiq.rb |
eivo-rails-sidekiq-0.0.1 | config/initializers/sidekiq.rb |