部署优化

This commit is contained in:
andy
2026-08-03 20:59:59 +08:00
parent 5294edab89
commit 727643f1f2
18 changed files with 358 additions and 130 deletions

View File

@@ -47,9 +47,7 @@ cp .env.example .env.local
--port 8765 \
--enable-processing \
--enable-monthly-generation \
--enable-company-reports \
--node-binary /absolute/path/to/node \
--artifact-tool-module /absolute/path/to/artifact_tool.mjs
--enable-company-reports
```
另开一个进程启动月报消费者:
@@ -91,8 +89,9 @@ worker 是独立无端口进程,应由进程管理器单独保活。
## 部署
生产配置见 [deploy/README.md](deploy/README.md)。当前 Compose 模板仍只打包 `web``caddy`Caddy 负责
HTTPSWeb 负责应用登录和会话;没有 MCP 端口、MCP 域名或 Agent Secret。月报 worker 必须作为独立进程部署,
并使用同一数据库、共享输出卷以及已经打包 Node/artifact-tool 的运行镜像;当前本地工作站已按这一方式运行。
HTTPSWeb 负责应用登录和会话;没有 MCP 端口、MCP 域名或 Agent Secret。公司渠道明细由 Web 进程使用
Python/openpyxl 生成正式 Excel不需要 Node/artifact-tool。月报 worker 必须作为独立进程部署,并使用同一
数据库、共享输出卷以及已经打包 Node/artifact-tool 的运行镜像;当前本地工作站已按这一方式运行。
## 当前月报行为