增加说明
This commit is contained in:
@@ -25,13 +25,13 @@
|
||||
将包含 `app.py` 的项目放到固定目录,例如:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/apps
|
||||
cd ~/apps
|
||||
mkdir -p /opt/crypto_monitor
|
||||
cd /opt/crypto_monitor
|
||||
# git clone ... 或解压同步的包
|
||||
cd crypto_monitor_gate
|
||||
cd crypto_monitor_gate_bot
|
||||
```
|
||||
|
||||
下文用 **`/root/crypto_monitor_gate`** 仅为示例,请换成你的实际绝对路径。
|
||||
下文用 **`/opt/crypto_monitor/crypto_monitor_gate_bot`** 仅为示例,请换成你的实际绝对路径。
|
||||
|
||||
---
|
||||
|
||||
@@ -91,7 +91,7 @@ curl -4 -sS --max-time 15 --proxy socks5h://127.0.0.1:1080 https://api.gateio.ws
|
||||
## 4. Python 虚拟环境
|
||||
|
||||
```bash
|
||||
cd /root/crypto_monitor_gate
|
||||
cd /opt/crypto_monitor/crypto_monitor_gate_bot
|
||||
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
@@ -159,7 +159,7 @@ TREND_PREVIEW_MAX_BALANCE_DRIFT_PCT=5
|
||||
3. `.env` 已含 `GATE_SOCKS_PROXY`
|
||||
|
||||
```bash
|
||||
cd /root/crypto_monitor_gate
|
||||
cd /opt/crypto_monitor/crypto_monitor_gate_bot
|
||||
source .venv/bin/activate
|
||||
python app.py
|
||||
```
|
||||
@@ -182,7 +182,7 @@ pm2 -v
|
||||
在项目根目录:
|
||||
|
||||
```bash
|
||||
cd /root/crypto_monitor_gate
|
||||
cd /opt/crypto_monitor/crypto_monitor_gate_bot
|
||||
pm2 start ecosystem.config.cjs
|
||||
pm2 status
|
||||
pm2 logs --lines 200
|
||||
@@ -219,9 +219,9 @@ ssh -N -D 127.0.0.1:1080 gate-vps \
|
||||
### 9.2 Flask
|
||||
|
||||
```bash
|
||||
cd /root/crypto_monitor_gate
|
||||
pm2 start /root/crypto_monitor_gate/.venv/bin/python --name crypto-monitor-gate -- \
|
||||
/root/crypto_monitor_gate/app.py
|
||||
cd /opt/crypto_monitor/crypto_monitor_gate_bot
|
||||
pm2 start /opt/crypto_monitor/crypto_monitor_gate_bot/.venv/bin/python --name crypto-monitor-gate -- \
|
||||
/opt/crypto_monitor/crypto_monitor_gate_bot/app.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user