From 3bfa70e27a42c3a649916a019363321384590172 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 24 May 2021 19:21:12 -0400 Subject: Update prod db config for environment --- config/database.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/database.yml b/config/database.yml index d440c4f..b7be9d6 100644 --- a/config/database.yml +++ b/config/database.yml @@ -74,13 +74,16 @@ test: # URL environment variable explicitly: # # production: -# url: <%= ENV['MY_APP_DATABASE_URL'] %> +# url: <%= ENV["MY_APP_DATABASE_URL"] %> # # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database # for a full overview on how database connection configuration can be specified. # production: <<: *default - database: esoterra_production - username: esoterra - password: <%= ENV['ESOTERRA_DATABASE_PASSWORD'] %> + host: <%= ENV["ESOTERRA_DATABASE_HOST"] %> + port: <%= ENV["ESOTERRA_DATABASE_PORT"] %> + database: <%= ENV["ESOTERRA_DATABASE_NAME"] %> + username: <%= ENV["ESOTERRA_DATABASE_USERNAME"] %> + password: <%= ENV["ESOTERRA_DATABASE_PASSWORD"] %> + sslmode: "require" -- cgit v1.2.3