Skip to content

Commit

Permalink
Allow database_host to be specified thorugh ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
robbevp committed Apr 3, 2022
1 parent a23e2d6 commit 3382d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ default: &default
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: <%= ENV['DATABASE_HOST'] || localhost %>

development:
<<: *default
Expand Down

0 comments on commit 3382d42

Please sign in to comment.