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/run.ps1
T
2026-05-07 15:54:19 +08:00

15 lines
481 B
PowerShell

$jarPath = "target\gmp-mock-service.jar"
if (-not (Test-Path $jarPath)) {
Write-Host "JAR 文件不存在,请先执行 build.ps1 进行构建" -ForegroundColor Red
exit 1
}
$env:JAVA_OPTS = $env:JAVA_OPTS ?? "-Xms256m -Xmx512m"
Write-Host "===== 启动 gmp-mock-service =====" -ForegroundColor Cyan
Write-Host "端口: 8080" -ForegroundColor Cyan
Write-Host "接口: POST http://localhost:8080/api/docx/export" -ForegroundColor Cyan
java $env:JAVA_OPTS -jar $jarPath