Files
eene_dashboard/scripts/kill-ports.ps1
EENE Dashboard fb2956b0ac feat: team org panel, admin CRUD, local deploy tools, bidirectional data sync
Add TeamMember model and APIs, team status UI, /admin page, local server bats,
and scripts to sync data between local PostgreSQL and Render.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 01:41:00 +09:00

12 lines
342 B
PowerShell

$ports = @(4000, 3000, 3001)
$killed = @()
Get-NetTCPConnection -State Listen -ErrorAction SilentlyContinue |
Where-Object { $ports -contains $_.LocalPort } |
ForEach-Object {
$pid = $_.OwningProcess
if ($killed -notcontains $pid) {
Stop-Process -Id $pid -Force -ErrorAction SilentlyContinue
$killed += $pid
}
}