Add ENV var for db host

This commit is contained in:
Matt-Yorkley
2019-07-02 20:33:25 +01:00
parent 1dd3d86a2b
commit b685e0d3a7

View File

@@ -2,7 +2,7 @@ defaults: &defaults
adapter: postgresql
encoding: unicode
pool: 5
host: localhost
host: <%= ENV.fetch('OFN_DB_HOST', 'localhost') %>
username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %>
password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>