demarches-normaliennes/config/database.yml

35 lines
923 B
YAML
Raw Normal View History

2018-02-09 09:49:02 +01:00
default: &default
2015-08-10 11:05:06 +02:00
adapter: postgresql
encoding: unicode
2018-02-09 09:49:02 +01:00
pool: <%= ENV.fetch("DB_POOL") { 5 } %>
2019-10-17 16:28:28 +02:00
# sql queries will be killed after 60s
# we should reduce this number
# A bigger timeout can be set for jobs
variables:
statement_timeout: <%= ENV['PG_STATEMENT_TIMEOUT'] || 60000 %>
2018-02-09 09:49:02 +01:00
development:
<<: *default
2018-09-03 15:57:59 +02:00
database: <%= ENV["DB_DATABASE"] %>
host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %>
# Workaround for https://github.com/ged/ruby-pg/issues/311
gssencmode: disable
2015-08-10 11:05:06 +02:00
test:
2018-02-09 09:49:02 +01:00
<<: *default
database: tps_test
host: localhost
username: tps_test
password: tps_test
# Workaround for https://github.com/ged/ruby-pg/issues/311
gssencmode: disable
2018-02-09 09:49:02 +01:00
production: &production
2018-02-09 09:49:02 +01:00
<<: *default
database: <%= ENV["DB_DATABASE"] %>
host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %>