17 lines
716 B
PowerShell
17 lines
716 B
PowerShell
# 只读:公网后台到底是哪套静态
|
|
$ErrorActionPreference = 'Continue'
|
|
Write-Output '=== admin current ==='
|
|
cmd /c 'dir E:\wwwroot\admin\current'
|
|
if (Test-Path 'E:\wwwroot\ops\active-release.json') {
|
|
Get-Content 'E:\wwwroot\ops\active-release.json' -Raw
|
|
}
|
|
Write-Output '=== index title sniff ==='
|
|
$idx = 'E:\wwwroot\admin\current\index.html'
|
|
if (Test-Path $idx) {
|
|
Select-String -Path $idx -Pattern 'title|询价|jeecg|vite' | Select-Object -First 8 | ForEach-Object { $_.Line.Trim() }
|
|
}
|
|
Write-Output '=== nginx jeecgboot / root ==='
|
|
Select-String -Path 'C:\nginx-1.18.0\myconf\ai.conf' -Pattern 'root |jeecgboot|proxy_pass|8180|8080' |
|
|
ForEach-Object { $_.Line.Trim() }
|
|
Write-Output 'ADMIN_WHY_DONE'
|