Commit Graph

3 Commits

Author SHA1 Message Date
shijing 6eb91076c5 fix: run.bat 错误分支加 pause;前端生产用 window.location.origin
- run.bat: :error 分支加 pause,避免创建 venv/装依赖失败时窗口一闪即关
- frontend app store: 开发用 127.0.0.1:8775,生产回落到 window.location.origin,跟后端同源直取

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:48:58 +08:00
shijing 49f1fb6089 feat: 后端服务前端 dist 并统一使用 8775 端口
- backend/app/main.py 挂载 dist/ 作为 SPA 静态资源,/assets 走 StaticFiles,其它路径回落 index.html
- 前后端 API base 统一切换到 127.0.0.1:8775,避开 8000 占用
- run.bat 自动创建/复用 backend/.venv,用 venv 启动 uvicorn
- .gitignore 忽略 backend/.venv/
- 新增 deploy/finai-backend.service

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:29:03 +08:00
shijing 75694b3182 chore: initial commit 2026-07-09 14:26:05 +08:00