初始化询价智能体新仓:同步本地工程并排除密钥与 .env。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# 部署前状态探测:只读,禁止改现网
|
||||
# 职责:确认 E:\wwwroot 布局、测试端口、现网端口仍在听
|
||||
$ErrorActionPreference = 'Continue'
|
||||
Write-Output '=== host ==='
|
||||
hostname
|
||||
Write-Output '=== paths ==='
|
||||
@(
|
||||
'E:\wwwroot',
|
||||
'E:\wwwroot\.env',
|
||||
'E:\wwwroot\ops\active-release.json',
|
||||
'E:\wwwroot\agent\current',
|
||||
'E:\wwwroot\admin\current',
|
||||
'E:\wwwroot\inquiry-new',
|
||||
'C:\yutongda',
|
||||
'C:\yutongda\ops\active-release.json'
|
||||
) | ForEach-Object { "$_ = $(Test-Path $_)" }
|
||||
|
||||
Write-Output '=== wwwroot top ==='
|
||||
if (Test-Path 'E:\wwwroot') {
|
||||
Get-ChildItem 'E:\wwwroot' | ForEach-Object { $_.Name }
|
||||
}
|
||||
|
||||
Write-Output '=== active-release ==='
|
||||
if (Test-Path 'E:\wwwroot\ops\active-release.json') {
|
||||
Get-Content 'E:\wwwroot\ops\active-release.json' -Raw
|
||||
}
|
||||
|
||||
Write-Output '=== ports ==='
|
||||
foreach ($x in 8080, 8809, 8810, 8811, 8813, 8180, 8910, 8913) {
|
||||
$c = Get-NetTCPConnection -LocalPort $x -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||
if ($c) {
|
||||
Write-Output "$x LISTEN pid=$($c.OwningProcess)"
|
||||
} else {
|
||||
Write-Output "$x down"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Output '=== health local ==='
|
||||
foreach ($u in @(
|
||||
'http://127.0.0.1:8910/health',
|
||||
'http://127.0.0.1:8180/jeecgboot/',
|
||||
'http://127.0.0.1:8810/health',
|
||||
'http://127.0.0.1:8080/jeecg-boot/'
|
||||
)) {
|
||||
try {
|
||||
$r = Invoke-WebRequest -Uri $u -UseBasicParsing -TimeoutSec 5
|
||||
Write-Output "OK $($r.StatusCode) $u"
|
||||
} catch {
|
||||
Write-Output "FAIL $u :: $($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Output '=== agent current sample ==='
|
||||
if (Test-Path 'E:\wwwroot\agent\current\agent\http_app.py') {
|
||||
Write-Output 'agent http_app.py present'
|
||||
} else {
|
||||
Write-Output 'agent http_app.py MISSING'
|
||||
}
|
||||
if (Test-Path 'E:\wwwroot\inquiry-new\jeecg-system-start-3.5.3.jar') {
|
||||
$j = Get-Item 'E:\wwwroot\inquiry-new\jeecg-system-start-3.5.3.jar'
|
||||
Write-Output "jar bytes=$($j.Length) mtime=$($j.LastWriteTime)"
|
||||
} else {
|
||||
Write-Output 'ledger jar MISSING'
|
||||
}
|
||||
if (Test-Path 'E:\wwwroot\admin\current\index.html') {
|
||||
Write-Output 'admin current index present'
|
||||
} else {
|
||||
Write-Output 'admin current index MISSING'
|
||||
}
|
||||
|
||||
Write-Output 'STATUS_PROBE_DONE'
|
||||
Reference in New Issue
Block a user