Add support for an env var to override DB port

This commit is contained in:
Steve Roberts
2020-05-26 11:04:42 +10:00
parent cf534237cd
commit d4a256fcca

View File

@@ -5,6 +5,7 @@ defaults: &defaults
host: <%= ENV.fetch('OFN_DB_HOST', 'localhost') %>
username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %>
password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>
port: <%= ENV.fetch('OFN_DB_PORT', 5432) %>
development:
<<: *defaults