Skip to content

Commit

Permalink
IIIF #23 - Reverting database connection initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Nov 18, 2022
1 parent 17b9ec8 commit 01f6b32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
default: &default
adapter: postgresql
timeout: 5000
pool: <%= ENV.fetch('DATABASE_POOL') { 20 } %>
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
host: <%= ENV.fetch('DATABASE_HOST') { 'localhost' } %>
port: <%= ENV.fetch('DATABASE_POST') { 5432 } %>
username: <%= ENV.fetch('DATABASE_USERNAME') { '' } %>
Expand Down
11 changes: 0 additions & 11 deletions config/initializers/database.rb

This file was deleted.

2 changes: 1 addition & 1 deletion config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development:
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY") { 5 } %>
production:
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY") { 2 } %>
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY") { 5 } %>
:queues:
- default

0 comments on commit 01f6b32

Please sign in to comment.