Remove uvicorn hot reload and exclude flags from docker-compose app service command.
This commit is contained in:
parent
1876649ed3
commit
ed5aaa501f
|
|
@ -66,8 +66,8 @@ services:
|
|||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
# 开发模式:启用 --reload 热重载
|
||||
command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-exclude 'data/*'"
|
||||
# 开发模式下,可以启用 --reload 热重载
|
||||
command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000'"
|
||||
networks:
|
||||
- deepaudit-network
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue