Skip to content

Commit 1ecc6a3

Browse files
committed
Set workers to 1
1 parent 42c0c26 commit 1ecc6a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/Dockerfile

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

101101
# Run uvicorn as Python module from the venv (no shell activation needed)
102102
# Use shell to expand PORT variable, then exec to proper signal handling
103-
CMD ["sh", "-c", "python -m uvicorn main:app --host 0.0.0.0 --port ${PORT} --workers 4"]
103+
CMD ["sh", "-c", "python -m uvicorn main:app --host 0.0.0.0 --port ${PORT} --workers 1"]

backend/scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# Start the FastAPI backend server
44
cd "$(dirname "$0")/.."
5-
uv run python -m uvicorn main:app --host 0.0.0.0 --port 4000 --workers 4
5+
uv run python -m uvicorn main:app --host 0.0.0.0 --port 4000 --workers 1

0 commit comments

Comments
 (0)