修改
This commit is contained in:
@@ -67,6 +67,7 @@ sudo usermod -aG docker $USER
|
||||
|
||||
```bash
|
||||
cd /opt/Binance_Altcoin_Monitor
|
||||
sed -i 's/\r$//' deploy/*.sh
|
||||
chmod +x deploy/docker-deploy.sh
|
||||
./deploy/docker-deploy.sh
|
||||
```
|
||||
@@ -120,6 +121,7 @@ sudo npm install -g pm2
|
||||
|
||||
```bash
|
||||
cd /opt/Binance_Altcoin_Monitor
|
||||
sed -i 's/\r$//' deploy/*.sh # 若从 Windows 克隆,先去掉 CRLF
|
||||
chmod +x deploy/pm2-deploy.sh
|
||||
./deploy/pm2-deploy.sh
|
||||
```
|
||||
@@ -280,6 +282,8 @@ 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` 跳过拉取 |
|
||||
| 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