- 新增 `sample-apps/order-service` Java 样板应用及 Win/Linux 构建、启停、状态脚本 - 新增 `LocalSampleAppService`,在 `software-a` 中支持 `order-service test` 本地桥接部署 - 增加桥接开关配置:`ENABLE_SAMPLE_APP_BRIDGE`、`SAMPLE_APP_ROOT` - 修正后端配置读取方式,环境变量可在运行时生效(`Settings` 改为 `default_factory`) - 更新应用元数据默认验证目标:`127.0.0.1:18080`、本地日志路径 - 新增桥接测试 `test_sample_app_bridge.py`,后端基线更新至 `24 passed` - 更新 `.gitignore`,忽略样板应用 `build/runtime` 产物 - 更新 README 与《当前进度总结》:记录本轮“真实样板应用 + 桥接能力”进展,MVP 进度约 `97%`
24 lines
493 B
PowerShell
24 lines
493 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$pidFile = Join-Path $root "runtime\\order-service.pid"
|
|
|
|
if (-not (Test-Path $pidFile)) {
|
|
Write-Output "STOPPED"
|
|
exit 1
|
|
}
|
|
|
|
$appPid = Get-Content -LiteralPath $pidFile | Select-Object -First 1
|
|
if (-not $appPid) {
|
|
Write-Output "STOPPED"
|
|
exit 1
|
|
}
|
|
|
|
$process = Get-Process -Id ([int]$appPid) -ErrorAction SilentlyContinue
|
|
if ($process) {
|
|
Write-Output "RUNNING"
|
|
exit 0
|
|
}
|
|
|
|
Write-Output "STOPPED"
|
|
exit 1
|