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

Remove DATABASE_URL where possible #4862

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

Conversation

foarsitter
Copy link
Collaborator

@foarsitter foarsitter commented Feb 15, 2024

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.

@foarsitter foarsitter force-pushed the remove_database_url branch from 2b74919 to 7d899c2 Compare August 27, 2024 08:43
@foarsitter foarsitter marked this pull request as ready for review August 27, 2024 08:44
@foarsitter foarsitter changed the title Remove DATABASE where possible Remove DATABASE_URL where possible Aug 27, 2024
@foarsitter foarsitter requested review from browniebroke and removed request for browniebroke October 11, 2024 07:54
Copy link
Member

@browniebroke browniebroke left a 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

{{cookiecutter.project_slug}}/.github/workflows/ci.yml Outdated Show resolved Hide resolved
docs/developing-locally.rst Outdated Show resolved Hide resolved
docs/developing-locally.rst Outdated Show resolved Hide resolved
{{cookiecutter.project_slug}}/config/settings/base.py Outdated Show resolved Hide resolved
foarsitter and others added 4 commits October 14, 2024 20:42
# 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'
Copy link
Member

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?

Suggested change
POSTGRES_HOST: 'postgres'
POSTGRES_HOST: 'localhost'

Copy link
Member

@browniebroke browniebroke left a 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"

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.

2 participants