Initial commit - PromptTech

This commit is contained in:
2026-01-27 18:07:00 -06:00
commit 3959a223bf
262 changed files with 128736 additions and 0 deletions

20
scripts/start_backend.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Backend Startup Script with Error Handling
echo "🚀 Starting Backend Server..."
cd /media/pts/Website/PromptTech_Solution_Site/backend
# Activate virtual environment
source venv/bin/activate
# Kill any existing processes on port 8181
echo "Checking for existing processes..."
lsof -ti:8181 | xargs kill -9 2>/dev/null || true
sleep 1
# Start the backend
echo "Starting Uvicorn server on port 8181..."
uvicorn server:app --reload --host 0.0.0.0 --port 8181
# If interrupted, this will clean up
trap 'echo "⚠️ Backend stopped"; deactivate; exit 0' INT TERM