1
0
Fork 0

Add env var "POSTGRES_POOL"

This commit is contained in:
Alex Kotov 2018-12-10 06:16:26 +05:00
parent e6ddd64829
commit f5a4c77913
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ env:
global:
- RAILS_MAX_THREADS=5
- POSTGRES_POOL=5
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres

View File

@ -1,7 +1,7 @@
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>