This repository has been archived on 2026-08-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gmp-service/deploy/build.sh
T
agentuser 7442f77bd0 refactor: streaming download, Git LFS templates, deploy workflow
- Replace base64 JSON response with StreamingResponseBody (zero-buffer)
- Error responses return JSON via GlobalExceptionHandler (400/404)
- Add git-lfs track for *.docx to keep repo lean
- Add deploy/deploy.sh: one-click build + restart
- Add deploy/clean-lfs.sh: periodic LFS cache cleanup
- Add deploy/gmp-service.service: systemd service unit
- Remove unused ApiResponse and DocxExportData DTOs
- Fix build.sh/run.sh jar name (gmp-mock-service -> gmp-service)
- Add TemplateNotFoundException for missing templates
2026-05-08 11:12:47 +08:00

20 lines
381 B
Bash

#!/bin/bash
set -e
echo "===== 开始构建 gmp-mock-service ====="
mvn clean package -DskipTests
if [ $? -eq 0 ]; then
echo "===== 构建成功 ====="
JAR_PATH="target/gmp-service.jar"
if [ -f "$JAR_PATH" ]; then
SIZE=$(du -h "$JAR_PATH" | cut -f1)
echo "JAR 文件: $JAR_PATH ($SIZE)"
fi
else
echo "===== 构建失败 ====="
exit 1
fi