feat: 本地 dev 自动 SSH 隧道复用测试环境 PG(回退 SQLite)+ 测试机 PG 发布到本机回环

This commit is contained in:
Sisyphus committed 2026-08-25 23:26:11 +08:00
1 parent 0deabfed45
commit ab3da5a730
3 files changed
+51 -4

No files matched your search

+10
View File
@@ -19,6 +19,16 @@ rem ============================================================
echo Stopping PERLER LAB processes (ports 5173 / 8788)...
echo.
rem Kill the SSH DB tunnel (port 15432) - only if the process is ssh.exe,
rem so an unrelated service on that port is never touched.
for /f "tokens=5" %%A in ('netstat -ano ^| findstr ":15432 " ^| findstr "LISTENING"') do (
tasklist /fi "PID eq %%A" 2>nul | findstr /i "ssh.exe" >nul 2>nul
if not errorlevel 1 (
echo [tunnel] terminating ssh.exe PID %%A
taskkill /F /PID %%A >nul 2>nul
)
)
set "KILLED_PIDS="
set "FOUND="