[ENV] Database config
This commit is contained in:
parent
4487f4c117
commit
46bb8df5cd
1 changed files with 14 additions and 5 deletions
|
@ -1,17 +1,26 @@
|
||||||
development:
|
default: &default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
|
pool: <%= ENV.fetch("DB_POOL") { 5 } %>
|
||||||
|
timeout: 5000
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *default
|
||||||
database: tps_development
|
database: tps_development
|
||||||
host: localhost
|
host: localhost
|
||||||
pool: 5
|
|
||||||
username: tps_development
|
username: tps_development
|
||||||
password: tps_development
|
password: tps_development
|
||||||
|
|
||||||
test:
|
test:
|
||||||
adapter: postgresql
|
<<: *default
|
||||||
encoding: unicode
|
|
||||||
database: tps_test
|
database: tps_test
|
||||||
host: localhost
|
host: localhost
|
||||||
pool: 5
|
|
||||||
username: tps_test
|
username: tps_test
|
||||||
password: tps_test
|
password: tps_test
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *default
|
||||||
|
database: <%= ENV["DB_DATABASE"] %>
|
||||||
|
host: <%= ENV["DB_HOST"] %>
|
||||||
|
username: <%= ENV["DB_USERNAME"] %>
|
||||||
|
password: <%= ENV["DB_PASSWORD"] %>
|
||||||
|
|
Loading…
Reference in a new issue