Skip to content

Bugfix/db silent bugs - #166

Merged
Xarlos89 merged 4 commits into
practical-python-org:masterfrom
fluffy-marmot:bugfix/db-silent-bugs
Jul 4, 2026
Merged

Bugfix/db silent bugs#166
Xarlos89 merged 4 commits into
practical-python-org:masterfrom
fluffy-marmot:bugfix/db-silent-bugs

Conversation

@fluffy-marmot

@fluffy-marmot fluffy-marmot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Description of your PR

Some fixes to small bugs in the docker workflow that only come up when changing the psql database name/other settings

Describe your changes

Fixed

  • fix a misnamed envvar that is swallowed silently if using the default psql username
  • remove a needless block in .sql file that can never do anything anyway; docker creates the database based on .env settings. This block fails silently when using default "eos" names but errors when changing name
  • POSTGRES_PORT is kind of confusingly used because in .yml file the psql container port is hardcoded anyway

Issue link

Closes #165

Checklist

  • Does an issue of this PR exist and have you linked it?
  • Have your ran pre-commit over your PR?
  • Was this PR branched off from master?
  • Is this PR merging to master?

…sed within DO 33470 block, at best this fails silently if POSTGRES_DB=eos because docker creates the database anyway beforehand, and errors out if db is renamed to something else
… number within the container, but in docker-compose.yml the container port number is inflexibly hardcoded to 5432. Add a new envvar to specify port number used by host system in case 5432 conflicts with host's psql
@Jiggly-Balls Jiggly-Balls added bug Something isn't working chore repo/project maintenance labels Jun 22, 2026

@Xarlos89 Xarlos89 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should also update the readme because it tells users to change the POSTGRES_PORT, and they should instead change the POSTGRES_PORT_HOST.

Comment thread src/.env.EXAMPLE Outdated
Comment thread src/docker-compose.yml Outdated
…, fix readme, remove inline comments in .env
@fluffy-marmot

Copy link
Copy Markdown
Contributor Author

We should also update the readme because it tells users to change the POSTGRES_PORT, and they should instead change the POSTGRES_PORT_HOST.
Thanks, fixed those couple things

@Xarlos89
Xarlos89 merged commit 0f591f4 into practical-python-org:master Jul 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chore repo/project maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Changing psql .env settings can create some problems

3 participants