Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

add user and password values to prod #459

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ test:
production:
<<: *default
host: <%= ENV['POSTGRES_HOST'].present? ? ENV['POSTGRES_HOST'] : 'operationcode-psql-postgresql' %>
user: <%= ENV['POSTGRES_USER'] %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe <<: *default is like a spread operator.

I think you can leave these out and only define database

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was still getting missing env var issues. But that was because the redis pod isn't updating when this deploys. I updated the pod and it worked. Going to revert this change, and see if it breaks.

database: operationcode_production
password: <%= ENV['POSTGRES_PASSWORD'] %>