-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkill.cmd
More file actions
24 lines (20 loc) · 750 Bytes
/
kill.cmd
File metadata and controls
24 lines (20 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
setlocal enabledelayedexpansion
echo Stopping artsite.ca services...
echo ================================
:: Kill processes using port 5173 (frontend)
echo Stopping frontend (port 5173)...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":5173"') do (
echo Killing process %%a on port 5173
taskkill /F /PID %%a >nul 2>&1
)
:: Kill processes using port 8787 (backend)
echo Stopping backend (port 8787)...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8787"') do (
echo Killing process %%a on port 8787
taskkill /F /PID %%a >nul 2>&1
)
echo.
echo Services stopped. You can now restart them with:
echo Frontend: pnpm dev --port 5173
echo Backend: cd workers ^&^& wrangler dev --port 8787 --env="development"