13 lines
528 B
PowerShell
13 lines
528 B
PowerShell
param([switch]$Running)
|
|
. (Join-Path $PSScriptRoot 'bell-common.ps1')
|
|
try {
|
|
$root = Get-BellPackageRoot
|
|
$state = Initialize-BellRuntime -PackageRoot $root -AllowOccupiedPorts:$Running
|
|
if ($Running) {
|
|
Wait-BellHealth -BaseUrl $state.BackendUrl -Attempts 2
|
|
Wait-BellHealth -BaseUrl $state.WebUrl -Attempts 2
|
|
}
|
|
Write-Host "Bell configuration check passed. PostgreSQL reachable; backend=$($state.BackendUrl); web=$($state.WebUrl)."
|
|
exit 0
|
|
} catch { Write-Error $_.Exception.Message; exit 1 }
|