文档修改
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@
|
||||
双击仓库根目录 **`一键部署.bat`**,或在 PowerShell 中:
|
||||
|
||||
```powershell
|
||||
cd C:\path\to\crypto_monitor
|
||||
cd C:\path\to\crypto_monitor_user
|
||||
.\deploy\setup_env.ps1
|
||||
```
|
||||
|
||||
@@ -46,7 +46,7 @@ sudo bash deploy/setup_env.sh --install-system-deps
|
||||
```
|
||||
|
||||
```bash
|
||||
cd /opt/crypto_monitor
|
||||
cd /opt/crypto_monitor_user
|
||||
bash deploy/setup_env.sh
|
||||
bash deploy/setup_env.sh --only binance,gate
|
||||
bash deploy/setup_env.sh --recreate-venv
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Requires -Version 5.1
|
||||
<#
|
||||
.SYNOPSIS
|
||||
crypto_monitor 一键环境部署(Windows PowerShell)
|
||||
crypto_monitor_user 一键环境部署(Windows PowerShell)
|
||||
|
||||
.DESCRIPTION
|
||||
- 为各子项目创建 Python venv 并安装依赖
|
||||
@@ -176,7 +176,7 @@ function Install-Pm2IfNeeded() {
|
||||
}
|
||||
|
||||
# --- main ---
|
||||
Write-Host "crypto_monitor 环境部署" -ForegroundColor White
|
||||
Write-Host "crypto_monitor_user 环境部署" -ForegroundColor White
|
||||
Write-Host "仓库根目录: $RepoRoot" -ForegroundColor DarkGray
|
||||
|
||||
if (-not (Test-Path $ReqFile)) {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# crypto_monitor 一键环境部署(Linux / macOS / Git Bash)
|
||||
# crypto_monitor_user 一键环境部署(Linux / macOS / Git Bash)
|
||||
#
|
||||
# 用法:
|
||||
# bash deploy/setup_env.sh
|
||||
@@ -233,7 +233,7 @@ install_pm2() {
|
||||
echo " 各子目录: pm2 start ecosystem.config.cjs"
|
||||
}
|
||||
|
||||
echo "crypto_monitor 环境部署"
|
||||
echo "crypto_monitor_user 环境部署"
|
||||
echo "仓库根目录: ${REPO_ROOT}"
|
||||
|
||||
[[ -f "${REQ_FILE}" ]] || { echo "缺少 ${REQ_FILE}" >&2; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user