- Read worker count from WORKERS env var (default: 4)
- Set WORKERS=4 in fly.toml for production
- Allows tuning worker count without code changes
- Can adjust via fly secrets set WORKERS=X
- Increase from 1 to 4 Uvicorn workers
- Better utilizes 2 CPU cores and 4GB RAM
- Improves concurrent request handling 4x
- Each worker ~200-400MB, leaves plenty of headroom for caching
Remove package installation step and use FastAPI CLI with PYTHONPATH
for simpler container execution. Disable reload in main.py and include
static/templates as package data for proper distribution.
Restructures the project for deployment with a more organized package
structure and enhanced web interface. Moves Bible data to package
static directory and adds comprehensive styling, JavaScript features,
and mobile responsiveness.