Spaces:
Sleeping

timetablev2 / stop_backend.bat
notha99y's picture
init
c398d0b
Raw History Blame Contribute Delete
566 Bytes
@echo off
echo Stopping Python backend processes...
echo Looking for uvicorn processes...
taskkill /f /im python.exe 2>nul
if %errorlevel% == 0 (
echo ✓ Stopped Python processes
) else (
echo No Python processes found
)
echo Looking for processes on port 8000...
for /f "tokens=5" %%a in ('netstat -aon ^| find ":8000" ^| find "LISTENING"') do (
echo Killing process %%a
taskkill /f /pid %%a 2>nul
)
echo Backend cleanup complete!
echo.
echo To restart the backend:
echo cd backend
echo uvicorn main:app --reload --host 0.0.0.0 --port 8000
pause