database name configurable in .env

This commit is contained in:
Devin Howard 2016-01-07 18:29:15 +08:00
parent a06a80eb43
commit c6b0ccdbdb
2 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@ export DB_USERNAME='postgres'
export DB_PASSWORD='3112'
export DB_HOST='localhost'
export DB_PORT='5432'
export DB_NAME='metamaps_gen002'
export REALTIME_SERVER='http://localhost:5001'
export MAILER_DEFAULT_URL='localhost:3000'

View file

@ -10,12 +10,12 @@ default: &default
development:
<<: *default
database: metamap002_development
database: <%= ENV['DB_NAME'] %>_development
test:
<<: *default
database: metamap002_test
database: <%= ENV['DB_NAME'] %>_test
production:
<<: *default
database: metamap002_production
database: <%= ENV['DB_NAME'] %>_production