chore: 修改启动命令
This commit is contained in:
+2
-1
@@ -36,8 +36,9 @@ fi
|
||||
if [[ ! -d server/.venv ]]; then
|
||||
echo "未找到 server/.venv,正在创建并安装依赖…"
|
||||
python3 -m venv server/.venv || exit 1
|
||||
server/.venv/bin/pip install -q -r server/requirements.txt || exit 1
|
||||
fi
|
||||
# 每次启动同步依赖:代码新增依赖(如 Pillow)装上即可用,已满足时秒过
|
||||
server/.venv/bin/pip install -q -r server/requirements.txt || exit 1
|
||||
|
||||
if [[ ! -f .env ]]; then
|
||||
echo "未找到 .env,已从 .env.example 复制,请填入 API Key 后再启动。"
|
||||
|
||||
Reference in New Issue
Block a user