Repository navigation
docs(readme): align environment variables and commands with reality - #23
Merged
Merged
Conversation
- REDIS_URL: it is read by db/database.py (parsed into host/port/db), not by Celery; tasks.py builds the broker URL from REDIS_HOST/REDIS_PORT/REDIS_DB - REDIS_PASSWORD: declared by the compose files for the Redis image only; tasks.py reads it but the broker URL does not include it (unused) - src/ci-test.sh: local convenience wrapper, not a CI entrypoint; the GitHub Actions workflow runs pytest directly - Demo password: test (was test123) - Add .env.example with placeholder values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
B7 of the portfolio fixes. The READMEs documented environment variables and commands that did not match the code:
REDIS_URLwas attributed to the wrong component,REDIS_PASSWORDwas described as required when nothing consumes it,src/ci-test.shwas listed as the CI entrypoint although CI never calls it, the demo password was stale, and.env.exampledid not exist. For a portfolio repo, docs that lie are worse than no docs.Changes
All documentation-only — zero behavior change.
REDIS_URLmisattributed to CeleryThe table said Celery (
tasks.py) used it as the broker URL, buttasks.pybuilds the URL fromREDIS_HOST/REDIS_PORT/REDIS_DBand never readsREDIS_URL.db/database.pyis the actual consumer (parses it into host/port/db and overrides the individual vars)..env.example.REDIS_PASSWORDdescribed as requiredNothing consumes it: the compose files declare it for the Redis image, and
tasks.pyreads it into a variable the broker URL never uses.src/ci-test.shdocumented as the CI entrypoint.github/workflows/test.yamlrunspytest -q --disable-warnings ./test/test_routersdirectly and never invokes the script.Stale demo password
test123->test(confirmed against the live demo).Missing
.env.example.env.examplewith placeholder values only, mirroring the README example.Verification
grepon the source:REDIS_HOST/REDIS_PORT/REDIS_DB(db/database.py,tasks.py),REDIS_URL(db/database.py),REDIS_PASSWORD(compose only),SECRET_KEY/ALGORITHM(auth).pytest -q-> 177 passed (unchanged; docs only).