Fix backend network errors and cleanup dev environment #460
+30
−573
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.
Description
This PR addresses the "network error" reported by users (e.g., @henry07) when running the application locally using Docker Compose. The issue was caused by a race condition where the backend attempted to connect to the database before it was fully ready (specifically during the
pgvectorbuild).Additionally, this PR cleans up the development environment by removing deprecated Kubernetes and Devbox configuration files and documentation to simplify the onboarding process for new contributors.
Related Issue
Fixes #459
Manual Tests
docker compose up --buildon a clean environment.backendcontainer waits for thedbcontainer's healthcheck (pg_isready) before starting.devboxanddeploy/directories are gone andREADME.mdis updated.Automated Tests
Documentation
README.md,CLAUDE.md, anddocs/DATABASE_CONNECTION.mdto reflect the simplified Docker Compose workflow and removed all Kubernetes/Devbox references.Reviewers
@Sahil S
Notes
Dockerfile.prodis retained for CI/CD compatibility, butdocker-compose.prod.ymlwas removed as it was redundant for local development.config/env/env.dev->config/env/dev.env) has been corrected across all documentation.