Files
truf-server/start_core_runtime.ps1
2026-09-30 20:30:56 +03:00

29 lines
1022 B
PowerShell

$ErrorActionPreference = 'Stop'
throw 'Docker development copy: runtime control is disabled until container isolation is ready. See DOCKER_MIGRATION.md.'
$Root = Split-Path -Parent $MyInvocation.MyCommand.Path
$RuntimeBootstrap = Join-Path $Root 'app\runtime_bootstrap.py'
$Supervisor = (Resolve-Path -LiteralPath (Join-Path $Root 'app\supervisor.py')).Path
$Config = Join-Path $Root 'app\config.yaml'
$FreezeCounters = Join-Path $Root 'start_freeze_counters.ps1'
$CoreSources = 'gitlab,dockerhub,huggingface'
try {
& $FreezeCounters
} catch {
Write-Warning "Freeze diagnostics did not start: $($_.Exception.Message)"
}
python -I -S -B $RuntimeBootstrap postgres-runtime -- verify --config $Config
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python -I -S -B $RuntimeBootstrap supervisor -- `
--runtime-bootstrap-entrypoint $Supervisor `
--config $Config `
--sources $CoreSources `
--background `
--no-dashboard `
--with-postgres
$SupervisorExit = $LASTEXITCODE
exit $SupervisorExit