51948469c2
- Stop ignoring web/app/index.html and web/app/assets/ - Bundle index-DBKIQT7H.js from current vite build (~101MB assets) Co-authored-by: Cursor <cursoragent@cursor.com>
898 B
898 B
2026-06-02 前端构建产物纳入 Git
日期
2026-06-02
变更摘要
将 web/app/index.html 与 web/app/assets/ 纳入版本库并推送到 Gitea,服务器可通过 git pull 同步 SPA,无需单独 tar/scp。
动机
用户要求前端推送到 Gitea;统一源码与构建物,简化生产 git reset --hard origin/main 部署路径。
涉及文件
.gitignore(取消忽略web/app/index.html、web/app/assets/)web/app/index.html、web/app/assets/**(Vite 构建,约 101MB)docs/changelog/2026-06-02-frontend-build-in-git.md
迁移 / 重启
无 DB 变更。生产更新:git pull 后可选 supervisorctl restart nexus(静态文件通常无需重启)。
验证方式
cd frontend && npx vite build
git ls-files web/app/index.html web/app/assets | head
curl -s http://127.0.0.1:8600/app/index.html | grep index-