Sha256: ec5f368d11ff7fd27c064d3d5feb10c9b4bd2913255634cd5c78ede71d80a904

Contents?: true

Size: 521 Bytes

Versions: 26

Compression:

Stored size: 521 Bytes

Contents

require 'sidekiq/scheduler'

# Configure Sidekiq Redis connection to use the '<%= @config.app_name %>' namespace
redis_config = { url: 'redis://localhost:6379', namespace: '<%= @config.app_name %>:' }

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

26 entries across 26 versions & 1 rubygems

Version Path
railman-0.6.13 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.12 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.11 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.10 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.9 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.8 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.7 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.6 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.5 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.4 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.3 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.2 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.1 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.6.0 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.5.2 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.5.1 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.5.0 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.4.0 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.3.7 templates/rails_app/config/initializers/sidekiq.rb.tt
railman-0.3.6 templates/rails_app/config/initializers/sidekiq.rb.tt