Sha256: def257cd3f91257d9e1166a0cdb71d5407f3acac017d51e6868d8380941924a2

Contents?: true

Size: 555 Bytes

Versions: 14

Compression:

Stored size: 555 Bytes

Contents

require 'sidekiq/scheduler'

# Configure Sidekiq Redis connection to use the '<%= @config.app_name %>' namespace
redis_config = { url: "redis://#{ENV.fetch('REDIS_SERVER')}", namespace: "<%= @config.app_name %>:#{Rails.env}:sidekiq" }

Sidekiq.configure_server do |config|
  config.redis = redis_config

  #config.on(:startup) do
  #  Sidekiq.schedule = YAML.load_file(File.expand_path("../../../config/scheduler.yml",__FILE__))
  #  Sidekiq::Scheduler.reload_schedule!
  #end
end

Sidekiq.configure_client do |config|
  config.redis = redis_config
end


Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
railman-1.0.6 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.5 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.4 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.3 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.2 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.1 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-1.0.0 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.20 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.19 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.18 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.17 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.16 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.15 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.14 templates/rails_app/config/initializers/sidekiq.rb.tt