punimtag/scripts/start-api.sh
tanyar09 09ee8712aa feat: extend people search to first/middle/last/maiden names and fix port binding issue
- Backend: Updated list_people_with_faces to search by first_name, middle_name, last_name, and maiden_name
- Frontend: Updated Modify page search UI and API client to support extended search
- Frontend: Updated Help page documentation for new search capabilities
- Infrastructure: Added start-api.sh wrapper script to prevent port 8000 binding conflicts
- Infrastructure: Updated PM2 config with improved kill_timeout and restart_delay settings
2026-02-05 16:57:47 +00:00

14 lines
352 B
Bash
Executable File

#!/bin/bash
# Wrapper script to start the API with port cleanup
# Kill any processes using port 8000 (except our own if we're restarting)
PORT=8000
lsof -ti :${PORT} | xargs -r kill -9 2>/dev/null || true
# Wait a moment for port to be released
sleep 2
# Start uvicorn
exec /opt/punimtag/venv/bin/uvicorn backend.app:app --host 0.0.0.0 --port 8000