Remove --reload from production uvicorn CMD
The --reload flag without watchfiles installed causes uvicorn to fall back to a polling-based file watcher that busy-loops at 100% CPU. This was burning an entire core 24/7 doing nothing useful in production. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
475c7aba03
commit
3885b408c9
1 changed files with 1 additions and 1 deletions
|
|
@ -45,4 +45,4 @@ ENV DATABASE_URL=postgresql://postgres:password@db:5432/dereth \
|
|||
SHARED_SECRET=your_shared_secret
|
||||
|
||||
## Launch the FastAPI app using Uvicorn
|
||||
CMD ["uvicorn","main:app","--host","0.0.0.0","--port","8765","--reload","--workers","1","--no-access-log","--log-level","warning"]
|
||||
CMD ["uvicorn","main:app","--host","0.0.0.0","--port","8765","--workers","1","--no-access-log","--log-level","warning"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue