diff options
author | David Gay <david@davidgay.org> | 2021-05-24 19:21:12 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-24 19:21:12 -0400 |
commit | 3bfa70e27a42c3a649916a019363321384590172 (patch) | |
tree | 17f33f3c2195e328d4345cc5190d496b813a5e7f | |
parent | 8c952fd5afd71b133d97e6e9d7896216941bad14 (diff) |
Update prod db config for environment
-rw-r--r-- | config/database.yml | 11 |
1 files 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" |