[DB] Only evaluate prod config on prod

Fixup for b43f0cbbb0
This commit is contained in:
Earlopain 2023-02-28 15:48:42 +01:00
parent b43f0cbbb0
commit acbe23981b
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -16,6 +16,7 @@ test:
host: postgres
pool: 5
<% if Rails.env.production? %>
production:
<<: *default
database: e621
@ -23,3 +24,4 @@ production:
password: <%= ENV.fetch("DB_PASSWORD") %>
host: <%= ENV.fetch("DB_HOST") %>
pool: <%= Sidekiq.server? ? ENV.fetch("DB_WORKER_POOL_SIZE") : ENV.fetch("DB_POOL_SIZE") %>
<% end %>