Files
Nexus/docs/changelog/2026-06-02-frontend-build-in-git.md
T
Your Name 51948469c2 build(frontend): track Vite output in Git for Gitea deploy
- 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>
2026-06-03 00:52:44 +08:00

898 B
Raw Blame History

2026-06-02 前端构建产物纳入 Git

日期

2026-06-02

变更摘要

web/app/index.htmlweb/app/assets/ 纳入版本库并推送到 Gitea,服务器可通过 git pull 同步 SPA,无需单独 tar/scp。

动机

用户要求前端推送到 Gitea;统一源码与构建物,简化生产 git reset --hard origin/main 部署路径。

涉及文件

  • .gitignore(取消忽略 web/app/index.htmlweb/app/assets/
  • web/app/index.htmlweb/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-