fix(dev-server): limit reload watcher to source

This commit is contained in:
caoxiaozhu
2026-07-20 10:31:00 +08:00
parent aa6a7d1250
commit 7a3755ac55
3 changed files with 70 additions and 2 deletions

View File

@@ -433,7 +433,7 @@ start_server() {
echo ""
if [ "$SERVER_RELOAD" = "true" ]; then
exec "$PYTHON_BIN" -m uvicorn app.main:app --reload --app-dir src --host "$SERVER_HOST" --port "$SERVER_PORT"
exec "$PYTHON_BIN" -m uvicorn app.main:app --reload --reload-dir src --app-dir src --host "$SERVER_HOST" --port "$SERVER_PORT"
fi
if [ "$SERVER_WORKERS" -gt 1 ] 2>/dev/null; then