Add TMDB search and media detail pages, HDHive resource ingestion flow, unified error handling, Docker single-container runtime, and project docs/config updates for local deployment. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
398 B
Bash
22 lines
398 B
Bash
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
BACKEND_PORT="${FLASK_RUN_PORT:-14620}"
|
|
FRONTEND_PORT="${FRONTEND_PORT:-14621}"
|
|
|
|
cd /app/backend
|
|
python3 app.py &
|
|
BACKEND_PID=$!
|
|
|
|
cd /app/frontend
|
|
npm run preview -- --host 0.0.0.0 --port "${FRONTEND_PORT}" &
|
|
FRONTEND_PID=$!
|
|
|
|
cleanup() {
|
|
kill "${BACKEND_PID}" "${FRONTEND_PID}" 2>/dev/null || true
|
|
}
|
|
|
|
trap cleanup INT TERM EXIT
|
|
|
|
wait "${BACKEND_PID}" "${FRONTEND_PID}"
|