Fix static directory path in main.py for Docker deployment
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# FitTrack2 Development Guidelines
|
||||
|
||||
Auto-generated from all feature plans. Last updated: 2025-12-25
|
||||
Auto-generated from all feature plans. Last updated: 2025-12-22
|
||||
|
||||
## Active Technologies
|
||||
|
||||
@@ -10,35 +10,13 @@ Auto-generated from all feature plans. Last updated: 2025-12-25
|
||||
|
||||
```text
|
||||
backend/
|
||||
├── alembic/
|
||||
├── src/
|
||||
│ ├── models/
|
||||
│ ├── services/
|
||||
│ ├── api/
|
||||
│ └── utils/
|
||||
├── templates/
|
||||
├── static/
|
||||
├── main.py
|
||||
├── requirements.txt
|
||||
└── Dockerfile
|
||||
frontend/
|
||||
tests/
|
||||
└── integration/
|
||||
└── test_sync_flow.py
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
# Run the application
|
||||
docker-compose up --build
|
||||
|
||||
# Run tests
|
||||
python -m pytest tests/
|
||||
|
||||
# Run migrations
|
||||
alembic upgrade head
|
||||
```
|
||||
# Add commands for
|
||||
|
||||
## Code Style
|
||||
|
||||
@@ -46,7 +24,7 @@ alembic upgrade head
|
||||
|
||||
## Recent Changes
|
||||
|
||||
- 001-fitbit-garmin-sync: Added complete implementation for Fitbit-Garmin synchronization, including weight sync, activity archiving, and health metrics download
|
||||
- 001-fitbit-garmin-sync: Added
|
||||
|
||||
<!-- MANUAL ADDITIONS START -->
|
||||
<!-- MANUAL ADDITIONS END -->
|
||||
<!-- MANUAL ADDITIONS END -->
|
||||
|
||||
@@ -32,7 +32,7 @@ async def lifespan(app: FastAPI):
|
||||
logger.info("--- Application Shutting Down ---")
|
||||
|
||||
app = FastAPI(lifespan=lifespan)
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
app.mount("/static", StaticFiles(directory="../static"), name="static")
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
from src.api import status, sync, setup, logs, metrics, activities
|
||||
|
||||
Reference in New Issue
Block a user