Sha256: dafde7710a22fa0323e7cfe78e21a9a4d75d711e987ca0e18d538bb5fea6faaa
Contents?: true
Size: 459 Bytes
Versions: 36
Compression:
Stored size: 459 Bytes
Contents
db_config = Rails.configuration.database_configuration[Rails.env] redis_url = ENV['REDIS_URL'] || 'redis://localhost:6379/0' Sidekiq.configure_server do |config| config.redis = { url: redis_url, namespace: db_config['database'] } begin require 'sidekiq/scheduler' rescue LoadError puts 'sidekiq-scheduler is not loaded.' end end Sidekiq.configure_client do |config| config.redis = { url: redis_url, namespace: db_config['database'] } end
Version data entries
36 entries across 36 versions & 1 rubygems