CI Bot
|
0c97f40825
|
Merge branch 'pr-35' into develop
|
2026-06-27 00:23:55 +08:00 |
|
Deploy Agent
|
78e1af1054
|
feat: 标准化部署流程和文档化
- 添加 docs/deployment.md 完整部署文档,包含:
- 环境要求
- 首次部署流程
- 版本更新流程
- 回滚流程
- 常见问题排查
- 环境变量说明
- 添加标准化部署脚本:
- scripts/deploy_production.sh: 生产环境部署脚本
- scripts/deploy_staging.sh: 预发布环境部署脚本
- scripts/rollback.sh: 回滚脚本(支持交互式和命令行模式)
- 完善 infra/docker/compose.yml:
- 添加详细注释说明
- 添加资源限制建议(注释)
- 记录 web volume 挂载的注意事项(避免 403 问题)
- 添加 .github/workflows/release.yml:
- 完整的发布流程
- 构建所有三个镜像(api、worker、web)
- 自动部署到生产环境
- E2E 测试和 GitHub Release 创建
|
2026-06-27 00:09:46 +08:00 |
|
xiaoxia
|
e915c0d6df
|
fix: 创建 API 和 Worker Dockerfiles
- 创建 infra/docker/api.Dockerfile 用于 FastAPI 应用
- 创建 infra/docker/worker.Dockerfile 用于 Celery Worker
- 使用 python:3.12-slim-bookworm 作为基础镜像
- Worker 包含 ffmpeg 和 opencv 依赖(用于视频处理)
- API 包含 PostgreSQL 开发库(用于 psycopg2 编译)
- 分离镜像减少不必要的依赖
|
2026-06-27 00:04:15 +08:00 |
|
xiaoxia
|
0fb4d95bd0
|
fix: Web Dockerfile API URL 改为通用默认值
- 将硬编码的 VITE_API_URL=http://47.98.113.167:8000 改为 https://saas-api.xiaoxiajianji.com
- 支持通过 --build-arg VITE_API_URL=xxx 在构建时覆盖默认值
|
2026-06-27 00:02:34 +08:00 |
|
xiaoxia
|
df8fe4dba3
|
fix: P3-3 add multi-stage build to api.Dockerfile
|
2026-06-26 17:56:51 +08:00 |
|
Xiaoxia AI
|
12b2eeb050
|
fix(deploy): load production web artifact on business host
|
2026-06-25 01:51:17 +08:00 |
|
Xiaoxia AI
|
a35abd155c
|
fix(deploy): guard staging builds on business host
|
2026-06-24 22:54:55 +08:00 |
|
Xiaoxia AI
|
1c883ec704
|
fix(deploy): make staging web build opt-in
|
2026-06-24 19:51:34 +08:00 |
|
Xiaoxia AI
|
bdb87508a1
|
fix(deploy): reuse staging backend images by default
|
2026-06-24 19:48:12 +08:00 |
|
Xiaoxia AI
|
bf452e3510
|
fix(ops): prune old docker artifacts after deploy
|
2026-06-23 22:39:18 +08:00 |
|
Xiaoxia AI
|
efa86088b8
|
fix(web): preserve lazy chunks across releases
|
2026-06-23 18:32:17 +08:00 |
|
Xiaoxia AI
|
f65a6a4145
|
fix(upload): raise production upload limit to 800mb
|
2026-06-23 12:32:11 +08:00 |
|
Xiaoxia AI
|
159ebae0f2
|
fix(upload): support mov assets and large web uploads
|
2026-06-23 11:44:10 +08:00 |
|
Xiaoxia AI
|
545f2cba0f
|
fix(web): allow production uploads through web proxy
|
2026-06-23 11:21:39 +08:00 |
|
Xiaoxia AI
|
b7b0765ba6
|
docs(release): close package one boundary validation
|
2026-06-23 10:04:56 +08:00 |
|
Xiaoxia AI
|
816d98175a
|
fix(ops): expose release version and limit worker concurrency
|
2026-06-23 07:52:19 +08:00 |
|
Xiaoxia AI
|
fb633a8ed4
|
fix(deploy): recreate web after api release
|
2026-06-22 20:07:16 +08:00 |
|
Xiaoxia AI
|
8a9542274f
|
fix(deploy): require runtime image artifact for production
|
2026-06-22 14:53:48 +08:00 |
|
Xiaoxia AI
|
6fb8d11cec
|
fix(deploy): skip runtime image builds on production host
|
2026-06-22 10:04:26 +08:00 |
|
Xiaoxia AI
|
1cf43fa6a0
|
fix(deploy): isolate production web api proxy
|
2026-06-22 10:02:03 +08:00 |
|
Xiaoxia AI
|
1939878dec
|
fix(deploy): require prebuilt web artifact for production
|
2026-06-22 09:34:27 +08:00 |
|
Xiaoxia AI
|
c7f243d7d8
|
fix(deploy): cache web dependencies during image build
|
2026-06-22 07:47:49 +08:00 |
|
Xiaoxia AI
|
d7ff0dceb1
|
fix(deploy): allow direct production deploy host prefix
|
2026-06-22 07:15:02 +08:00 |
|
Xiaoxia AI
|
aa2b190866
|
fix(deploy): allow direct staging deploy host prefix
|
2026-06-21 23:13:51 +08:00 |
|
Xiaoxia AI
|
238cffcbcf
|
fix(deploy): align staging deploy host prefix
|
2026-06-21 23:11:36 +08:00 |
|
Xiaoxia AI
|
29c130e6ee
|
fix(nginx): route final production domains
|
2026-06-21 20:44:40 +08:00 |
|
Xiaoxia AI
|
0972ef6931
|
fix(nginx): split saas and git domains
|
2026-06-21 18:27:16 +08:00 |
|
Xiaoxia AI
|
70a9f4f4b5
|
fix(deploy): use mirrored web base images
|
2026-06-21 17:23:24 +08:00 |
|
Xiaoxia AI
|
2874ab0ac0
|
fix(deploy): rebuild web image during releases
|
2026-06-21 16:49:00 +08:00 |
|
Xiaoxia AI
|
9fc880422c
|
docs(deploy): point nginx template to production
|
2026-06-21 16:11:51 +08:00 |
|
Xiaoxia AI
|
a186f367f3
|
fix(deploy): separate production application deployment
|
2026-06-21 15:50:40 +08:00 |
|
Xiaoxia AI
|
713a244e80
|
chore(release): provision separated production infrastructure
|
2026-06-21 15:35:09 +08:00 |
|
Xiaoxia AI
|
6d68c28860
|
chore(release): validate production env readiness
|
2026-06-21 12:34:51 +08:00 |
|
Xiaoxia AI
|
46bd774742
|
build(docker): include maintenance scripts
|
2026-06-21 11:32:54 +08:00 |
|
Xiaoxia AI
|
a9751783b2
|
fix(deploy): parameterize alembic schema probe
|
2026-06-21 07:04:39 +08:00 |
|
Xiaoxia AI
|
654c0f3ab0
|
fix(deploy): preserve alembic version probe quoting
|
2026-06-21 07:02:46 +08:00 |
|
Xiaoxia AI
|
4c89d6b440
|
fix(deploy): handle alembic baseline stamping
|
2026-06-21 06:55:56 +08:00 |
|
Xiaoxia AI
|
0809a079c5
|
refactor(db): introduce alembic schema baseline
|
2026-06-21 06:48:16 +08:00 |
|
Xiaoxia AI
|
e61dfc27f6
|
refactor(deploy): freeze canonical docker entrypoint
|
2026-06-21 05:09:21 +08:00 |
|
Xiaoxia AI
|
c93e064f3b
|
fix(deploy): bind generated files to host path
|
2026-06-20 23:44:00 +08:00 |
|
Xiaoxia AI
|
bcfad4ad6a
|
fix(deploy): expose generated video files
|
2026-06-20 23:40:47 +08:00 |
|
Xiaoxia AI
|
1e3a52fa17
|
fix(worker): persist generated mp4 without oss
|
2026-06-20 23:17:52 +08:00 |
|
Xiaoxia AI
|
bd1c936635
|
fix(deploy): build compose services serially
|
2026-06-20 23:09:56 +08:00 |
|
Xiaoxia AI
|
554f7fc192
|
fix(deploy): rebuild only backend services on deploy
|
2026-06-20 23:01:50 +08:00 |
|
Xiaoxia AI
|
017277c152
|
fix(deploy): avoid remote metadata checks during compose build
|
2026-06-20 22:57:33 +08:00 |
|
Xiaoxia AI
|
1fb8463bab
|
fix(worker): speed up ffmpeg package install
|
2026-06-20 22:52:23 +08:00 |
|
Xiaoxia AI
|
3afe9689f7
|
feat(worker): generate real mp4 outputs
|
2026-06-20 22:42:07 +08:00 |
|
Xiaoxia AI
|
4dbdb0f853
|
chore(ci): use prebuilt python validation image
|
2026-06-20 21:05:10 +08:00 |
|
Xiaoxia AI
|
d31c62d4e2
|
fix(deploy): align deployment with split infrastructure
|
2026-06-20 19:02:48 +08:00 |
|
Xiaoxia AI
|
94dd60108c
|
refactor: 彻底迁移到阿里云 OSS 并重构基础设施
- 删除 MinIO 依赖,改用阿里云 OSS (oss2)
- 重写存储服务 storage.py(完全兼容原接口)
- 更新配置:config.py 改为 OSS_* 配置项
- 重构 Docker Compose:分离基础设施(infra.yml)和应用(compose.yml)
- 添加健康检查和自动重启配置
- 创建标准化部署脚本(init-server.sh + deploy.sh)
- 统一 Nginx 配置(主域名 api.xiaoxiajianji.com)
- 修复 Web Dockerfile 端口映射(80 not 3000)
服务器清理完成:
- 删除旧云控制台、监控系统、桌面版代码
- 删除 2.6GB 旧安装包
- 清理 Docker 缓存 2.5GB
- 磁盘使用率从 48% 降至 26%
|
2026-06-20 15:24:24 +08:00 |
|