Files
inquiry_robot/deploy/_remote_fix_pointer.ps1
T

18 lines
789 B
PowerShell

# Fix active-release pointer after admin cutover (ASCII only)
$ErrorActionPreference = 'Stop'
New-Item -ItemType Directory -Force -Path 'E:\wwwroot\ops' | Out-Null
$obj = [ordered]@{
root = 'E:\wwwroot'
releaseId = 'admin-20260913-154002'
adminCurrent = 'E:\wwwroot\admin\current'
adminRelease = 'E:\wwwroot\admin\releases\admin-20260913-154002\dist'
agentCurrent = 'E:\wwwroot\agent\current'
agentHome = 'E:\wwwroot\agent\releases\agent-20260913-143916\agent'
jeecgbootProxy = 'http://127.0.0.1:8180/jeecgboot/'
updatedAt = (Get-Date).ToString('o')
note = 'admin cutover Jeecg Vue + ledger 8180'
}
($obj | ConvertTo-Json) | Out-File -FilePath 'E:\wwwroot\ops\active-release.json' -Encoding utf8
Get-Content 'E:\wwwroot\ops\active-release.json'
Write-Output 'POINTER_OK'