Archived
- 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
20 lines
381 B
Bash
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
|