初始化询价智能体新仓:同步本地工程并排除密钥与 .env。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-13 14:30:44 +08:00
co-authored by Cursor
commit 2a14def882
2621 changed files with 393165 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
$ErrorActionPreference = "Continue"
$Nginx = "C:\nginx-1.18.0"
$AiNew = "C:\Users\ytd_extdev_0903\incoming\ai.conf.cutover-8910"
$Ai = Join-Path $Nginx "myconf\ai.conf"
Copy-Item $AiNew $Ai -Force
Write-Output "conf copied"
# Prefer Windows service restart (runs as SYSTEM, can reload)
try {
Restart-Service -Name "Nginx1.18" -Force -ErrorAction Stop
Write-Output "SERVICE_RESTARTED"
} catch {
Write-Output "SERVICE_RESTART_FAIL=$_"
try {
& "C:\yutongda\bounce_nginx.ps1"
Write-Output "BOUNCE_RAN"
} catch {
Write-Output "BOUNCE_FAIL=$_"
}
}
Start-Sleep -Seconds 2
cmd /c "curl.exe -sk -H `"Host: ai.ytd-scm.com`" https://127.0.0.1/agent/health"
Write-Output ""
cmd /c "curl.exe -sk -o NUL -w %%{http_code} -H `"Host: ai.ytd-scm.com`" https://127.0.0.1/"
Write-Output ""