mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
This allows us to tune for UK. The hypothesis from @kristinalim is: > From what I understand, it can result to Rails processes waiting for each other to complete, while the DB server can take more simultaneous connections.
24 lines
516 B
YAML
24 lines
516 B
YAML
defaults: &defaults
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
pool: <%= ENV.fetch('OFN_DB_POOL', 5) %>
|
|
host: <%= ENV.fetch('OFN_DB_HOST', 'localhost') %>
|
|
username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %>
|
|
password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>
|
|
|
|
development:
|
|
<<: *defaults
|
|
database: open_food_network_dev
|
|
|
|
test:
|
|
<<: *defaults
|
|
database: open_food_network_test
|
|
|
|
production:
|
|
<<: *defaults
|
|
database: open_food_network_prod
|
|
|
|
staging:
|
|
<<: *defaults
|
|
database: open_food_network_prod
|