Implement full media crawler workflow with Flask backend and Vue frontend.
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>
This commit is contained in:
21
docker/start.sh
Normal file
21
docker/start.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user