修改
This commit is contained in:
@@ -108,8 +108,8 @@ curl -X POST http://127.0.0.1:21450/api/push/test
|
||||
### 4.1 安装依赖
|
||||
|
||||
```bash
|
||||
# Python 3.10+
|
||||
sudo apt install -y python3 python3-pip python3-venv
|
||||
# Python 3.10+(部署脚本会自动创建 .venv;若无 venv 模块需先装)
|
||||
sudo apt install -y python3 python3-venv python3-pip
|
||||
|
||||
# Node.js + PM2
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||
@@ -272,8 +272,8 @@ docker compose up -d
|
||||
```bash
|
||||
cd /opt/Binance_Altcoin_Monitor
|
||||
git pull
|
||||
python3 -m pip install -r backend/requirements.txt -q
|
||||
pm2 restart binance-altcoin-monitor
|
||||
./deploy/pm2-deploy.sh
|
||||
# 或手动: .venv/bin/pip install -r backend/requirements.txt && pm2 restart binance-altcoin-monitor
|
||||
```
|
||||
|
||||
---
|
||||
@@ -284,6 +284,7 @@ pm2 restart binance-altcoin-monitor
|
||||
|------|------|
|
||||
| `bash\r: No such file or directory` | 脚本为 Windows 换行,执行:`sed -i 's/\r$//' deploy/*.sh && chmod +x deploy/*.sh` |
|
||||
| `cannot pull with rebase: unstaged changes` | 执行 `git stash` 后重试;或 `DEPLOY_SKIP_GIT_PULL=1 ./deploy/pm2-deploy.sh` 跳过拉取 |
|
||||
| `No module named pip` | 执行 `sudo apt install -y python3-venv` 后重新 `./deploy/pm2-deploy.sh`(脚本会用 .venv) |
|
||||
| Web 无数据 | 检查能否访问币安;国内服务器尝试 `PROXY_ENABLED=true` |
|
||||
| 企微收不到 | 检查 `WECOM_WEBHOOK_URL`;`curl -X POST .../api/push/test` |
|
||||
| 08:10 未推送 | 确认容器/PM2 在 08:10 前已运行;查日志 |
|
||||
|
||||
Reference in New Issue
Block a user