Improve deploy.sh: fix git sync, CN pip mirrors, and pip retry on timeout.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -102,6 +102,26 @@ cd /opt/Trading_Studio
|
||||
bash deploy.sh update
|
||||
```
|
||||
|
||||
> **git pull 报本地修改冲突?** 新版 `deploy.sh` 会自动 `stash` 后同步;若仍失败可手动:
|
||||
> `git fetch origin && git reset --hard origin/main`
|
||||
|
||||
### 0.4.1 pip / PyTorch 下载超时
|
||||
|
||||
PyTorch + triton 约 2-3GB,国内网络默认启用清华镜像,并延长超时到 600 秒:
|
||||
|
||||
```bash
|
||||
# 默认已开启国内镜像,若仍慢可加大超时
|
||||
USE_CN_MIRROR=1 PIP_TIMEOUT=900 bash deploy.sh deps
|
||||
|
||||
# 仅补装依赖(不拉代码、不启 PM2)
|
||||
bash deploy.sh deps
|
||||
|
||||
# PyTorch 已手动装好时跳过
|
||||
SKIP_PYTORCH=1 bash deploy.sh deps
|
||||
```
|
||||
|
||||
下载过程中出现 `Retrying... Read timed out` 属于正常重试,**并非卡死**,请耐心等待 10-30 分钟。
|
||||
|
||||
### 0.5 PM2 运维(root 环境)
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user