Sha256: a484dd5e0e0db44cf95eab174cc817691e51dba224742b4f57dffb8a5c9af799
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
# active_job append_file "config/application.yml", <<-EOF REDIS_HOST: localhost REDIS_PORT: "6379" EOF run "cp config/application.yml config/application.yml.example" create_file "config/initializers/sidekiq.rb", <<-EOF Sidekiq.configure_server do |config| config.redis = { :url => "redis://\#{ENV['REDIS_HOST']}:\#{ENV['REDIS_PORT']}/0", :namespace => '#{app_path}' } end Sidekiq.configure_client do |config| config.redis = { :url => "redis://\#{ENV['REDIS_HOST']}:\#{ENV['REDIS_PORT']}/0", :namespace => '#{app_path}' } end EOF create_file "tmp/pids/.keep", "" create_file "config/sidekiq.yml", <<-EOF --- :verbose: true :pidfile: ./tmp/pids/sidekiq.pid :logfile: ./log/sidekiq.log :queues: - default development: :concurrency: 1 production: :concurrency: 2 EOF inject_into_file "config/routes.rb", after: "# active_job\n" do <<-EOF require 'sidekiq/web' authenticate :user do mount Sidekiq::Web => '/sidekiq' end EOF end inject_into_file "config/application.rb", after: "# active_job\n" do <<-EOF config.active_job.queue_name_prefix = Rails.env config.active_job.queue_name_delimiter = '.' # config.active_job.queue_adapter = :sidekiq EOF end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
crosstie-0.0.6 | lib/crosstie/templates/active_job.rb |
crosstie-0.0.5 | lib/crosstie/templates/active_job.rb |
crosstie-0.0.4 | lib/crosstie/templates/active_job.rb |