refactor: deploy.sh 拆分为模块化结构

- deploy.sh: 从 1574 行精简至 141 行,仅保留主流程编排
- lib/common.sh: 基础设施(日志/SSH复用/备份/上传/迁移/服务管理)
- lib/test.sh: 6 项部署后测试函数
- 迁移系统改用 _migrations 追踪表替代文件名模式匹配
- 所有 SSH 操作复用 ControlMaster socket
This commit is contained in:
2026-05-18 10:09:37 +08:00
parent 2616bcc69e
commit f9f1ffeff6
3 changed files with 588 additions and 1521 deletions

1605
deploy.sh

File diff suppressed because it is too large Load Diff