Skip to content

Commit

Permalink
set username and password on config/database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HikaruSato committed Jul 9, 2022
1 parent 8a4578b commit f62c356
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/database.yml
Expand Up @@ -17,6 +17,9 @@
default: &default
adapter: postgresql
encoding: unicode
host: db
username: <%= ENV["POSTGRES_USER"] %>
password: <%= ENV["POSTGRES_PASSWORD"] %>
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Expand Down Expand Up @@ -82,5 +85,4 @@ test:
production:
<<: *default
database: myapp_production
username: myapp
password: <%= ENV["MYAPP_DATABASE_PASSWORD"] %>

0 comments on commit f62c356

Please sign in to comment.