fix: fallback to CentOS 7 single executable on start failure
This commit is contained in:
@@ -80,3 +80,11 @@
|
||||
- 2026-08-23 重建成功:目录二进制 SHA-256 为 `28f2c2b99ef66cb523feef171c8c2438071e724629fed44f348734b982d4a4e7`;tar.gz SHA-256 为 `d8a9de5813a6f4c8b27f05565926faa9267e9070df4241387568169d97ce5cbe`。
|
||||
- `tar -xOf` 提取归档内的 `bun-linux-x64-baseline/cc-web` 后,其 SHA-256 与目录二进制完全一致;包内 `package.json` 版本为 `1.2.11`。
|
||||
- 从 `./dist-exe/bun-linux-x64-baseline/cc-web` 直接启动本机等价验证通过:端口 18082 可访问,启动日志包含 `CC-Web server listening`,运行进程 `/proc/<pid>/exe` 指向该发布目录且摘要一致。
|
||||
|
||||
## 2026-08-23 start.sh 启动回退修复
|
||||
|
||||
- `start.sh` 默认仍走原有 Node/PM2 源码启动;只在 `CC_WEB_START_MODE=auto`、源码启动失败且系统识别为 CentOS 7 时回退。
|
||||
- 启动前会释放解析出的监听端口,默认端口为 8002;源码路径和 single-exe 回退路径都会再次确认端口已释放。
|
||||
- single-exe 通过 `CC_WEB_APP_DIR` 指向项目根目录,复用根目录 `config/auth.json`、sessions/logs 和 `.env`,不会强制设置 `CC_WEB_PASSWORD`。
|
||||
- 回退前会比较归档内二进制 SHA-256,发现 `dist-exe/bun-linux-x64-baseline/cc-web` 过旧时自动从 `dist-exe/cc-web-bun-linux-x64-baseline.tar.gz` 刷新。
|
||||
- 回归验证覆盖:源码/PM2 端口 18084 启动、single-exe 复用 auth.json、占用端口自动关闭后 single-exe 启动;均通过。
|
||||
|
||||
Reference in New Issue
Block a user