diff options
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/database.yml b/config/database.yml index 8914ab16d..259244e6f 100644 --- a/config/database.yml +++ b/config/database.yml @@ -17,7 +17,8 @@ test: production: <<: *default - database: postgres - username: postgres - password: - host: db + database: <%= ENV['DB_NAME'] || 'mastodon_production' %> + username: <%= ENV['DB_USER'] || 'mastodon' %> + password: <%= ENV['DB_PASS'] || '' %> + host: <%= ENV['DB_HOST'] || 'localhost' %> + port: <%= ENV['DB_PORT'] || 5432 %> |