Skip to content

Remove DATABASE_URL where possible#4862

Open
foarsitter wants to merge 5 commits into
cookiecutter:mainfrom
foarsitter:remove_database_url
Open

Remove DATABASE_URL where possible#4862
foarsitter wants to merge 5 commits into
cookiecutter:mainfrom
foarsitter:remove_database_url

Conversation

@foarsitter

@foarsitter foarsitter commented Feb 15, 2024

Copy link
Copy Markdown
Collaborator

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

@browniebroke browniebroke left a comment

Copy link
Copy Markdown
Member

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

Comment thread {{cookiecutter.project_slug}}/.github/workflows/ci.yml Outdated
Comment thread docs/developing-locally.rst Outdated
Comment thread docs/developing-locally.rst
Comment thread {{cookiecutter.project_slug}}/config/settings/base.py Outdated
foarsitter and others added 4 commits October 14, 2024 20:42
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
# 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
Copy Markdown
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'

@browniebroke browniebroke left a comment

Copy link
Copy Markdown
Member

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