Skip to content

Commit 244ff05

Browse files
JacobCoffeeclaude
andcommitted
fix: correct API module paths from byte_bot to byte_api
Updated all references to use the correct microservices module path: - .env.example: LITESTAR_APP=byte_api.app:create_app - services/api/Dockerfile: uvicorn byte_api.app:create_app --factory - services/api/README.md: documentation references This fixes the "Module not found" error when starting the API service. Note: .env also needs manual update (not tracked in git). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4d26e3c commit 244ff05

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DISCORD_DEV_USER_ID=IDOfYourDevUser
88

99
# --- Project Settings
1010
# No Prefix for Project settings
11-
LITESTAR_APP=byte_bot.app:create_app
11+
LITESTAR_APP=byte_api.app:create_app
1212
WEB_URL=https://byte-bot.app
1313
SECRET_KEY=ThisIsNotAProductionToken
1414
ENVIRONMENT=dev

services/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
8080

8181
# Run database migrations and start server
8282
# Note: In production, consider running migrations separately in an init container
83-
CMD ["sh", "-c", "alembic upgrade head && uvicorn byte_api.app:app --host 0.0.0.0 --port 8000 --workers 2"]
83+
CMD ["sh", "-c", "alembic upgrade head && uvicorn byte_api.app:create_app --factory --host 0.0.0.0 --port 8000 --workers 2"]

services/api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ services/api/
191191
This service is part of Phase 1 (API Layer Extraction) of the microservices migration. It consolidates functionality
192192
from:
193193

194-
- `byte_bot/app.py` - Litestar app factory
195-
- `byte_bot/server/` - Web service logic
196-
- `byte_bot/server/domain/` - Business domains
194+
- `byte_api/app.py` - Litestar app factory
195+
- `byte_api/domain/` - Business domains
196+
- `byte_api/lib/` - Infrastructure code (database, settings, etc.)
197197

198198
The Discord bot will communicate with this service via HTTP rather than direct database access.
199199

0 commit comments

Comments
 (0)