Browse Source

DATABASE_NAME

main
pvincent 5 months ago
parent
commit
0844c54bd0
  1. 4
      .env.sample
  2. 4
      config/database.yml

4
.env.sample

@ -1 +1,3 @@
RAILS_PORT=7500
RAILS_PORT=7500
DATABASE_HOST=localhost
DATABASE_NAME=easy-going-rails

4
config/database.yml

@ -1,8 +1,8 @@
---
default: &default
host: <%= ENV.fetch("DB_HOST") { 'localhost' } %>
database: &db_name easy-going-rails
host: <%= ENV.fetch("DATABASE_HOST") { 'localhost' } %>
database: &db_name <%= ENV.fetch("DATABASE_NAME") { 'easy-going-rails' } %>
user: *db_name
password: *db_name
adapter: postgresql

Loading…
Cancel
Save