mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 15:34:16 +08:00
chore(dev): uv run --no-sync 跳过依赖解析
dev.sh 后端启动从 uv run 改为 uv run --no-sync, 直接用已安装的 .venv, 不再每次访问镜像源校验 lockfile。避免镜像源 403/网络抖动导致后端起不来。 dev.ps1 本就用 .venv 直起, 不受影响。
This commit is contained in:
@@ -138,7 +138,9 @@ echo
|
||||
|
||||
(
|
||||
cd "$BACKEND_DIR"
|
||||
uv run uvicorn app.main:app --reload --host 0.0.0.0 --port "$BACKEND_PORT" 2>&1 \
|
||||
# --no-sync: 跳过依赖解析, 直接用已安装的 .venv 环境。
|
||||
# 避免 uv 每次启动都访问镜像源校验 lockfile (镜像源 403/网络抖动会导致后端起不来)。
|
||||
uv run --no-sync uvicorn app.main:app --reload --host 0.0.0.0 --port "$BACKEND_PORT" 2>&1 \
|
||||
| prefix_awk "$(printf "${BLUE}[backend ]${NC} ")"
|
||||
) &
|
||||
PIDS+=("$!")
|
||||
|
||||
Reference in New Issue
Block a user