Files
openfoodnetwork/config/database.yml
Pau Perez 33ca6a2096 Allow changing the connection pool size
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.
2020-04-06 16:03:06 +02:00

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