Permalink
Browse files

Add Sidekiq and Procfile

  • Loading branch information...
adamdawkins committed Feb 8, 2019
1 parent 784d576 commit a19a2bab7d969a3b5894418bd02db08bda552fd7
Showing with 23 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +10 −0 Gemfile.lock
  3. +2 −0 Procfile
  4. +2 −0 config/environments/production.rb
  5. +8 −0 config/sidekiq.yml
@@ -7,6 +7,7 @@ gem 'rails', '~> 5.2.2'
# Infrastructure
gem 'bootsnap', '>= 1.1.0', require: false
gem 'puma', '~> 3.11'
gem 'sidekiq'

# Database
gem 'data_migrate'
@@ -59,6 +59,7 @@ GEM
commonmarker (0.18.2)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.4)
connection_pool (2.2.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
@@ -152,6 +153,8 @@ GEM
public_suffix (3.0.3)
puma (3.12.0)
rack (2.0.6)
rack-protection (2.0.5)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2)
@@ -183,6 +186,7 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
redis (4.1.0)
rinku (1.7.3)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
@@ -230,6 +234,11 @@ GEM
tilt (>= 1.1, < 3)
shoulda-matchers (4.0.0.rc1)
activesupport (>= 4.2.0)
sidekiq (5.2.5)
connection_pool (~> 2.2, >= 2.2.2)
rack (>= 1.5.0)
rack-protection (>= 1.5.0)
redis (>= 3.3.5, < 5)
simple_form (4.1.0)
actionpack (>= 5.0)
activemodel (>= 5.0)
@@ -307,6 +316,7 @@ DEPENDENCIES
rubocop-rails_config
sass-rails
shoulda-matchers (= 4.0.0.rc1)
sidekiq
simple_form
spring
spring-watcher-listen (~> 2.0.0)
@@ -0,0 +1,2 @@
web: bundle exec rails server -p $PORT -e $RACK_ENV
worker: bundle exec sidekiq -e $RACK_ENV -C config/sidekiq.yml
@@ -1,6 +1,8 @@
Rails.application.configure do
config.action_controller.perform_caching = true

config.active_job.queue_adapter = :sidekiq

config.action_mailer.perform_caching = false
config.active_record.dump_schema_after_migration = false

@@ -0,0 +1,8 @@
---
:verbose: false
:concurrency: 5
:queues:
- [main, 5]
production:
:queues:
- [main, 5]

0 comments on commit a19a2ba

Please sign in to comment.