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
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user