Initial commit: monorepo Match Live TV.

Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-26 17:45:37 +02:00
commit bba6df52c0
381 changed files with 20599 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Dopo server_bootstrap.sh: avvia lo stack produzione
set -euo pipefail
DEPLOY_ROOT="${DEPLOY_ROOT:-$HOME/matchlivetv}"
if [[ -d /opt/matchlivetv ]]; then
DEPLOY_ROOT="/opt/matchlivetv"
fi
cd "$DEPLOY_ROOT/infra"
if [[ ! -f .env ]]; then
echo "Manca infra/.env — copia da .env.production.example e compila i secret"
exit 1
fi
docker compose -f docker-compose.prod.yml --env-file .env up -d --build
echo "Attendo healthcheck Rails..."
sleep 30
curl -sf "http://127.0.0.1:3000/up" && echo " OK" || echo " FAIL — vedi: docker compose -f docker-compose.prod.yml logs rails"
echo "Seed demo (opzionale, una tantum):"
echo " docker compose -f docker-compose.prod.yml exec rails bundle exec rails db:seed"