elder-yudao-pro/deploy/local/stop-ui.ps1

9 lines
343 B
PowerShell
Raw Permalink Normal View History

2026-10-05 22:02:14 +08:00
. (Join-Path $PSScriptRoot 'common.ps1')
$ui = Get-LocalUiProcess
if ($ui) {
Stop-Process -Id $ui.ProcessId
Write-Output "Stopped local UI PID $($ui.ProcessId)."
} else { Write-Output 'The local UI is not running.' }
$pidFile = Join-Path $runtimePath 'ui.pid'
if (Test-Path -LiteralPath $pidFile) { Remove-Item -LiteralPath $pidFile }