Commit Graph

59 Commits

Author SHA1 Message Date
n72595987@gmail.com
9475e164af 修复 CI 构建:更正 martial-tool 克隆路径
Some checks failed
continuous-integration/drone/push Build is failing
问题:
- Drone 的工作目录是 /drone/src(当前仓库)
- 之前尝试 cd /drone 会失败
- 导致 martial-tool 克隆到错误位置

解决方案:
- 使用 cd /drone/src/.. 导航到父目录
- 在 /drone/src/../martial-tool 位置克隆框架代码
- 编译时使用相同的路径 /drone/src/../martial-tool

路径结构:
/drone/
  ├── src/              # martial-master (当前仓库)
  └── martial-tool/     # BladeX 框架 (克隆的)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 18:00:32 +08:00
n72595987@gmail.com
ad1f3df70b 修复 CI 构建:添加克隆 BladeX 框架步骤
Some checks failed
continuous-integration/drone/push Build is failing
问题:
- Drone CI 只会 clone 当前仓库,不会自动获取 martial-tool
- 导致编译框架依赖步骤失败

解决方案:
- 添加步骤0:使用 alpine/git 镜像克隆 martial-tool 代码
- 将框架代码 clone 到 /drone/martial-tool
- 编译步骤使用正确的路径 /drone/martial-tool

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:52:47 +08:00
n72595987@gmail.com
9d37f3f73d 修复 Drone CI 配置:移除 host volumes 以解决 untrusted 仓库问题
Some checks failed
continuous-integration/drone/push Build is failing
- 移除 maven-cache volume 挂载
- 同一构建内的步骤仍可共享 Maven 本地仓库
- BladeX 框架编译结果可被后端编译步骤复用

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:45:28 +08:00
n72595987@gmail.com
5ce4c4601d 添加 Drone CI/CD 自动化部署配置
Some checks failed
continuous-integration/drone/push Build encountered an error
1. 新增 .drone.yml 配置文件
   - 自动编译 BladeX 框架依赖
   - 自动编译后端项目并打包
   - 构建 Docker 镜像
   - 自动部署到生产服务器
   - 健康检查验证部署成功

2. 新增 Dockerfile
   - 基于 eclipse-temurin:17-jre 轻量镜像
   - 配置 JVM 参数优化内存使用
   - 添加健康检查端点
   - 支持多环境配置(dev/test/prod)

现在推送代码到 main 分支后,Drone CI 会自动:
- 编译项目
- 构建 Docker 镜像
- 部署到 154.30.6.21 服务器
- 执行健康检查

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:04:39 +08:00
n72595987@gmail.com
38472ee832 优化后端配置和数据库结构
1. 修复Swagger配置,添加武术模块API分组
   - 在SwaggerConfiguration中新增martialApi()方法
   - 使武术模块的66个接口能在Knife4j界面正常显示

2. 优化项目依赖配置
   - 添加spring-boot-starter-actuator用于健康检查
   - 暂时注释flowable工作流依赖以简化项目

3. 更新数据库结构
   - 优化martial_db.sql,精简表结构从123张减少到53张
   - 保留核心BladeX系统表和15张武术业务表
   - 更新测试数据:2场比赛、10名运动员、9个项目

4. 补充项目文档
   - 添加架构说明、开发指南等中文文档

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:30:20 +08:00
9c77fcb4ac Merge branch 'main' of git.waypeak.work:martial/martial-master 2025-11-29 15:03:56 +08:00
109f226371 fix bugs 2025-11-29 15:03:33 +08:00
n72595987@gmail.com
9c7604d98b chore: 配置开发环境并更新数据库设置
- 添加 VS Code 调试配置(launch.json, tasks.json)
- 添加 VS Code 调试使用指南
- 更新数据库端口为高位端口(MySQL: 33066, Redis: 63379)
- 更新应用服务器端口为 8123
- 启用 blade-starter-liteflow 依赖
- 添加 SDKMAN 配置文件(.sdkmanrc)
- 添加项目开发文档(CLAUDE.md)
- 更新 .gitignore 忽略日志和部署文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 13:26:22 +08:00
3b097b5f63 fix bugs 2025-11-28 16:17:55 +08:00