Skip to content

Commit dcc309d

Browse files
committed
Reload application on the change of the .env file
1 parent 40fdf38 commit dcc309d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/local_with_uvicorn/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ USER app
4040
WORKDIR /code
4141

4242
# -------- replace with comment to run with gunicorn --------
43-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--reload-include", ".env"]
43+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--reload-include", "/code/.env"]
4444
# CMD ["gunicorn", "app.main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)