use-DB_NAME-in-development (#5430)

This commit is contained in:
masarakki
2017-10-17 18:45:37 +09:00
committed by Eugen Rochko
parent 554c2fd8af
commit 0e0c6b1b4b
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ default: &default
development:
<<: *default
database: mastodon_development
database: <%= ENV['DB_NAME'] || 'mastodon_development' %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
host: <%= ENV['DB_HOST'] %>
@ -17,7 +17,7 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
database: mastodon_test<%= ENV['TEST_ENV_NUMBER'] %>
database: <%= ENV['DB_NAME'] || 'mastodon' %>_test<%= ENV['TEST_ENV_NUMBER'] %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
host: <%= ENV['DB_HOST'] %>