fix: move health server from port 8080 to 8081 (#130) #131
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#131
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue/130-move-bot-health-server-off-port-8080-to-avoid-admi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #130
What changed
Changed the health server default port from 8080 to 8081 to resolve the conflict with Adminer, which is mapped to host port 8080 in the docker-compose stack.
Files changed
health_server.py— default port changed to 8081 in bothHealthServer.__init__andrun_health_serverCLAUDE.md— updated port references in Production and Common Issues sectionstests/refractor-integration-test-plan.md— updated health check URL referencestests/refractor-preflight.sh— updated curl health check URLDeployment note
docker-compose.ymlis gitignored and cannot be committed. The local dev file was updated manually (healthcheck URL → port 8081, addedports: 8081:8081). The production compose onsba-botswill also need its healthcheck updated:And a port mapping added to expose the health endpoint from the host:
AI Code Review
Files Reviewed
health_server.py(modified)CLAUDE.md(modified)tests/refractor-integration-test-plan.md(modified)tests/refractor-preflight.sh(modified)Findings
Correctness
HealthServer.__init__(line 20) andrun_health_server(line 151) — no split-brain risk.paperdynasty.py:137callsrun_health_server(bot)with no explicit port argument, so it inherits the new default (8081) automatically — no call-site changes needed.Security
Style & Conventions
Suggestions
docker-compose.ymlsteps required onsba-bots(healthcheck URL + port mapping). Consider adding a checklist item to the issue or a deployment runbook so the prod compose update doesn't get missed after merge.Verdict: APPROVED
Clean, minimal, correct. All port references updated consistently across code, docs, and test artifacts. The
paperdynasty.pycall-site correctly inherits the new default without changes. Deployment note in the PR body is thorough.(Note: Gitea blocks self-approval — posting as COMMENT. Treat as APPROVED.)
Automated review by Claude PR Reviewer
Checkout
From your project repository, check out a new branch and test the changes.