Files
kt-financial-system/DEPLOYMENT_LOG.md
你的用户名 076b9fac5f
Some checks failed
Deploy Finance MCP Service / build-mcp (push) Successful in 5m21s
Deploy to Production / Build and Test (push) Successful in 10m12s
Deploy Finance MCP Service / deploy-mcp (push) Failing after 4s
Deploy to Production / Deploy to Server (push) Successful in 6m24s
feat: add Finance MCP workflow
2025-11-08 19:39:10 +08:00

76 lines
2.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 部署日志
## 2024-11-04 部署记录
### Telegram通知功能部署
- **时间**: 2024-11-04 23:30
- **版本**: v1.1.0
- **功能**: Telegram Bot通知系统
#### 已完成功能:
1. ✅ 基础Telegram通知
2. ✅ 频率控制和去重
3. ✅ 失败重试机制
4. ✅ 通知历史记录
5. ✅ 优先级设置
#### 配置信息:
- Bot Token: 已配置
- Chat ID: 1102887169
- Bot用户名: @ktcaiwubot
#### 测试结果:
- ✅ Telegram消息发送成功
- ✅ API接口已实现
- 🚧 前端界面待完成
---
## 2025-11-06 部署记录
### PostgreSQL 数据持久化与财务数据同步
- **时间**: 2025-11-06 21:30
- **版本**: main@latest
- **内容**: 后端切换 PostgreSQLCI/CD 自动导入 657 条 2025 年账目
#### 核心变更
1. `docker-compose.yml` 新增 `postgres` 服务并启用 `postgres-data` 卷持久化
2. `apps/backend/scripts/import-finance-data.js` 重写为 PostgreSQL 版本,支持新旧两种 CSV 结构
3. Gitea Workflow 部署脚本自动执行 `pnpm --filter @vben/backend import:data -- --csv /app/data/finance/finance-combined.csv --year 2025`
#### 数据校验
- `sudo docker-compose exec -T postgres psql -U kt_financial -d kt_financial -c "SELECT COUNT(*) FROM finance_transactions;"`**657**
- 前端 `/finance/transactions` 页面显示最新日期为 **2025-11-05**,历史数据保持完整
---
## 2025-11-08 部署记录
### Finance MCP Service 独立 CI/CD
- **时间**: 2025-11-08 18:50
- **版本**: main@latest
- **内容**: 新增 `.gitea/workflows/deploy-mcp.yml`,专门构建并下发 `@vben/finance-mcp-service`,不再触碰主应用容器。
#### 核心变更
1. `build-mcp` 仅安装/构建 MCP 包(`pnpm --filter @vben/finance-mcp-service`),包含 typecheck 与产物生成。
2. `deploy-mcp` 通过 `appleboy/ssh-action` 拉取服务器最新代码,并在容器化 Node 20 环境里构建 MCP 服务,避免污染宿主 Node。
3. 自动生成 `/home/atai/run-finance-mcp.sh`,可直接执行 `pnpm --filter @vben/finance-mcp-service start`,便于 Codex/Claude 通过 SSH 调用。
#### 验证
- `pnpm --filter @vben/finance-mcp-service build` 在 CI 与服务器双端通过。
- 服务器路径 `/home/atai/kt-financial-system/apps/finance-mcp-service/dist` 更新至最新提交,可随时执行 `./run-finance-mcp.sh` 启动 MCP。
---
最后更新时间: 2025-11-08 18:50