punimtag/stop_backend.sh
Tanya 68d280e8f5 feat: Add new analysis documents and update installation scripts for backend integration
This commit introduces several new analysis documents, including Auto-Match Load Performance Analysis, Folder Picker Analysis, Monorepo Migration Summary, and various performance analysis documents. Additionally, the installation scripts are updated to reflect changes in backend service paths, ensuring proper integration with the new backend structure. These enhancements provide better documentation and streamline the setup process for users.
2025-12-30 15:04:32 -05:00

25 lines
512 B
Bash
Executable File

#!/bin/bash
# Stop FastAPI backend server
echo "🛑 Stopping FastAPI server..."
# Find and kill uvicorn processes
pkill -f "uvicorn backend.app:app" 2>/dev/null
# Also kill any Python processes on port 8000
PID=$(lsof -ti :8000 2>/dev/null)
if [ ! -z "$PID" ]; then
kill -9 $PID 2>/dev/null
echo "✅ Killed process $PID on port 8000"
fi
sleep 1
# Verify port is free
if lsof -i :8000 >/dev/null 2>&1; then
echo "⚠️ Port 8000 is still in use"
else
echo "✅ Port 8000 is now free"
fi