落地报价模板主账与后台:合同映射、灌种 SQL/脚本、智能体填表,并补测服运维探针与合同文档对齐。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
$ErrorActionPreference = "Continue"
|
||||
Write-Host "=== run-ledger-inner.ps1 ==="
|
||||
Get-Content "E:\wwwroot\ops\run-ledger-inner.ps1"
|
||||
Write-Host "=== config redis lines ==="
|
||||
Get-ChildItem "E:\wwwroot\inquiry-new\config" -Recurse -ErrorAction SilentlyContinue | ForEach-Object { Write-Host ("cfgfile=" + $_.FullName) }
|
||||
Select-String -Path "E:\wwwroot\inquiry-new\config\*.yml","E:\wwwroot\inquiry-new\config\*.yaml","E:\wwwroot\inquiry-new\config\*.properties" -Pattern "redis" -ErrorAction SilentlyContinue | ForEach-Object { Write-Host ($_.Filename + ":" + $_.LineNumber + ":" + $_.Line.Trim()) }
|
||||
Write-Host "=== simulate parse lens only ==="
|
||||
Get-Content "E:\wwwroot\.env" | ForEach-Object {
|
||||
$line = $_.Trim()
|
||||
if (-not $line -or $line.StartsWith("#")) { return }
|
||||
$i = $line.IndexOf("=")
|
||||
if ($i -lt 1) { return }
|
||||
Set-Item -Path ("Env:" + $line.Substring(0, $i).Trim()) -Value $line.Substring($i + 1).Trim().Trim('"')
|
||||
}
|
||||
Write-Host ("from_env user=" + $env:YTD_REDIS_USERNAME + " user_len=" + $env:YTD_REDIS_USERNAME.Length)
|
||||
Write-Host ("url_len=" + $env:REDIS_URL.Length)
|
||||
if ($env:REDIS_URL -match "redis://:([^@]+)@([^:/]+)(?::(\d+))?(?:/(\d+))?") {
|
||||
Write-Host ("form=pass_only host=" + $Matches[2] + " pw_len=" + $Matches[1].Length)
|
||||
} elseif ($env:REDIS_URL -match "redis://([^:/@]+):([^@]+)@([^:/]+)(?::(\d+))?(?:/(\d+))?") {
|
||||
Write-Host ("form=user_pass user=" + $Matches[1] + " user_len=" + $Matches[1].Length + " pw_len=" + $Matches[2].Length + " host=" + $Matches[3] + " port=" + $Matches[4] + " db=" + $Matches[5])
|
||||
} else {
|
||||
Write-Host "NO_MATCH"
|
||||
# show sanitized url structure
|
||||
$u = $env:REDIS_URL
|
||||
$safe = $u -replace "://[^@]+@", "://***:***@"
|
||||
Write-Host ("url_safe=" + $safe)
|
||||
}
|
||||
Write-Host "DUMP_DONE"
|
||||
Reference in New Issue
Block a user