Files

39 lines
1.9 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.
# 源码版本核对
## 为什么要重新核对
压缩包中的 inventory/source-baselines.yml 记录了上一台电脑看到的四个提交。只读远端核对后,server 默认分支是 develop6@9a6f7a5,client 默认分支是 master@9ebb082;两者均与旧记录不同。admin 和 nginx 与旧记录一致。另一个本地 ai-soulmate-server 目录指向不同的 Gitee/Spring Boot 代码库,不能与内部 FastAPI 仓库混用。
因此,当前状态是“交接资料已恢复,源码基线尚未复核”,不是“源码已经可以部署”。
server 默认分支还使用 Hunyuan3D/Bailian,而用户描述的是 Tripo。必须先由仓库负责人明确 server/client 的发布分支或 tag,再创建本地部署适配分支;默认分支不能自动视为发布版本。
## 在服务器上复核
把四个源码仓库放在同一个目录,例如 /srv/ai-soulmate/sources,然后执行:
~~~bash
cd /srv/ai-soulmate-local-deployment
SOURCE_ROOT=/srv/ai-soulmate/sources \
./scripts/record-source-baseline.sh \
> inventory/source-check-$(date +%F-%H%M%S).yml
~~~
提交前检查:
~~~bash
git diff -- inventory/source-check-*.yml
git status --short
~~~
报告可以提交,但真实 .env、Token、证书、用户数据和原始日志不能提交。脚本会标记仓库是否跟踪任何非示例 .env 文件;一旦为 true,先审查历史并轮换凭据,再做远端推送。
## 当前四个仓库的边界
| 仓库 | 当前行动 |
| --- | --- |
| ai-soulmate-server | 先完成本地 PostgreSQL、Redis、S3 provider 和生产镜像适配 |
| ai-soulmate-client | 后续放到靠近打印机的工作站,先做设备凭证、离线队列和幂等重试 |
| mlkj-admin | 只启用 AI SoulMate 数据源和模块,移除无关初始化与默认账号 |
| nginx-server | 只参考网关职责,不直接复制公网域名和路由;应用镜像完成后再决定是否使用 |