fix: fallback to CentOS 7 single executable on start failure
This commit is contained in:
10
README.md
10
README.md
@@ -173,6 +173,8 @@ cd cc-web
|
||||
- 自动安装 PM2
|
||||
- 使用 `npm ci` 或 `npm install` 安装依赖
|
||||
- 以 `ccweb` 为默认 PM2 应用名启动或重启服务
|
||||
- 启动前自动释放配置端口(默认 `8002`)
|
||||
- 在 CentOS 7 上如果源码方式启动失败,自动回退到 `dist-exe/bun-linux-x64-baseline/cc-web`
|
||||
|
||||
临时前台运行:
|
||||
|
||||
@@ -211,9 +213,15 @@ dist-exe/bun-linux-x64-baseline/
|
||||
```bash
|
||||
cd /opt/cc-web
|
||||
chmod +x cc-web
|
||||
PORT=8002 CC_WEB_PASSWORD='请改成强密码' ./cc-web
|
||||
PORT=8002 ./cc-web
|
||||
```
|
||||
|
||||
如果项目根目录同时包含 `start.sh` 和 `dist-exe/`,直接执行 `./start.sh` 即可。
|
||||
脚本默认先按原有 Node/PM2 方式启动;仅当源码方式启动失败且系统识别为 CentOS 7
|
||||
时,才自动切换到 `dist-exe/bun-linux-x64-baseline/cc-web`。启动前会先释放监听端口,
|
||||
默认端口为 `8002`。已有 `config/auth.json` 时会直接复用,不会强制要求重新设置
|
||||
`CC_WEB_PASSWORD`。
|
||||
|
||||
这个发布包只包含 cc-web 服务本体和前端资源,**不会把 Claude/Codex CLI 打进包里**。
|
||||
运行时仍调用宿主机上的 CLI:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user