chore: 合并为单仓库,统一部署流程

- 根目录加入 docker-compose、Caddyfile、文档等原本不在仓库里的文件
- 前后端两份 GitHub Actions 合并成根目录的一个 deploy workflow:
  构建前端上传到 build/,再在服务器上 git pull 并重建容器

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-26 16:02:12 +08:00
1 parent 70983a12a5
commit 47d4679984
40 files changed
+13723 -34

No files matched your search

Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
ROOT="$(cd "$(dirname "$0")" && pwd)"
# 启动后端
cd "$ROOT/api" || exit 1
uv run manage.py runserver &
BACKEND_PID=$!
# 启动前端
cd "$ROOT/client" || exit 1
npm run start &
FRONTEND_PID=$!
# 捕获退出信号,同时终止两个进程
trap "kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; exit" INT TERM
wait