From 0c3c97a26894e0e014fb2041a0e51705c7b52c8f Mon Sep 17 00:00:00 2001 From: Shem Date: Tue, 15 Oct 2024 12:52:34 +0300 Subject: [PATCH] Update docker-compose.yml reload python server for hot reloading --- .framework/python/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.framework/python/docker-compose.yml b/.framework/python/docker-compose.yml index ce9014aa..4c743ae1 100644 --- a/.framework/python/docker-compose.yml +++ b/.framework/python/docker-compose.yml @@ -8,7 +8,7 @@ services: poetry export -f "requirements.txt" --without-hashes --with-credentials > "requirements.txt" /wait-for-it.sh postgres-python:5432 -q -t 60 && poetry run alembic upgrade head && - poetry run gunicorn app.main:app --worker-class=uvicorn.workers.UvicornWorker --bind=0.0.0.0:3000 --workers=5" + poetry run gunicorn app.main:app --worker-class=uvicorn.workers.UvicornWorker --bind=0.0.0.0:3000 --workers=5 --reload" working_dir: /usr/src volumes: - ./:/usr/src