Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tweaks #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Minor tweaks #3

wants to merge 3 commits into from

Conversation

matt17r
Copy link

@matt17r matt17r commented Dec 12, 2020

A few more suggestions while I'm in the code 🙂

- postgres_db_user is normally the same as <app_name>
- with the default Postgres hba.conf, connections to localhost use peer 
authentication, using 127.0.0.1 prevents this problem
@@ -1,7 +1,7 @@
---
environment_vars:
TEST_NAME: ayyylmao
DATABASE_HOST: localhost
DATABASE_HOST: 127.0.0.1
DATABASE_NAME: "{{ postgres_db_name }}"
DATABASE_USERNAME: "{{ postgres_db_user }}"
DATABASE_PASSWORD: "{{ postgres_db_password }}"
Copy link
Author

@matt17r matt17r Dec 12, 2020

Choose a reason for hiding this comment

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

Technically a new Rails app expects the DATABASE_PASSWORD ENV VAR to be named APP_NAME_DATABASE_PASSWORD but since we have to load all the other ENV VARs into database.yml anyway there's probably no need to change it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant