-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Remove DATABASE_URL where possible #4862
base: master
Are you sure you want to change the base?
Conversation
2b74919
to
7d899c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in principle, might be nice to see how it looks like after master is merged, as there was a few other changes
7d899c2
to
d275ac2
Compare
Co-authored-by: Bruno Alla <[email protected]>
# Conflicts: # docs/2-local-development/developing-locally.rst # {{cookiecutter.project_slug}}/compose/production/django/Dockerfile
POSTGRES_USER: 'postgres' | ||
POSTGRES_PASSWORD: 'postgres' | ||
POSTGRES_DB: 'postgres' | ||
POSTGRES_HOST: 'postgres' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the host used to be localhost
... Was it intentional or should we keep that?
POSTGRES_HOST: 'postgres' | |
POSTGRES_HOST: 'localhost' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we replace this one too?
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres" |
This is an attempt the remove
DATABASE_URL
environment variable.The only use case where
DATABASE_URL
is required is when an application is hosted on heroku.