Skip to content

Commit

Permalink
Update config/database.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Kofink <[email protected]>
  • Loading branch information
Victoremepunto and akofink committed Jun 22, 2021
1 parent 1ce2076 commit 98f552d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
db_service = ENV.fetch("DATABASE_SERVICE_NAME","").upcase.sub("-", "_")
username = ENV.key?("POSTGRESQL_ADMIN_PASSWORD") ? "postgres" : ENV["POSTGRESQL_USER"]
password = ENV.key?("POSTGRESQL_ADMIN_PASSWORD") ? ENV["POSTGRESQL_ADMIN_PASSWORD"] : ENV["POSTGRESQL_PASSWORD"]
host = ENV.fetch("#{db_service}_SERVICE_HOST")
host = ENV.fetch("POSTGRES_SERVICE_HOST")
database = Rails.env.test? ? ENV['POSTGRESQL_TEST_DATABASE'] || ENV["POSTGRESQL_DATABASE"] : ENV["POSTGRESQL_DATABASE"]
port = ENV.key?("POSTGRESQL_PORT") ? ENV["POSTGRESQL_PORT"] : 5432
end
Expand Down

0 comments on commit 98f552d

Please sign in to comment.