19 lines
612 B
PowerShell
19 lines
612 B
PowerShell
. "$PSScriptRoot\env.ps1"
|
|
|
|
$backendPidFile = Join-Path $PidDir "backend.pid"
|
|
$frontendPidFile = Join-Path $PidDir "frontend.pid"
|
|
|
|
if (Test-PidRunning $backendPidFile) {
|
|
$pidValue = Get-Content -LiteralPath $backendPidFile | Select-Object -First 1
|
|
Write-Host "Backend: running (pid $pidValue) $BackendPublicBaseUrl"
|
|
} else {
|
|
Write-Host "Backend: stopped"
|
|
}
|
|
|
|
if (Test-PidRunning $frontendPidFile) {
|
|
$pidValue = Get-Content -LiteralPath $frontendPidFile | Select-Object -First 1
|
|
Write-Host "Frontend: running (pid $pidValue) $FrontendPublicBaseUrl"
|
|
} else {
|
|
Write-Host "Frontend: stopped"
|
|
}
|