Files
MatchLiveTv/scripts/overnight_youtube_e2e.sh
Emiliano Frascaro 854738b46d Stabilizza live YouTube/RTMP e fix crash rotazione mobile.
Pipeline YouTube con relay, overlay e publisher sync lato backend; fix GL pauseGlDuringRotation su Android per evitare crash in rotazione durante lo streaming Flutter.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 15:30:55 +02:00

12 lines
591 B
Bash
Executable File

#!/usr/bin/env bash
# Test YouTube notturno sul server (retry fino a successo).
set -euo pipefail
HOST="${DEPLOY_HOST:-eminux@192.168.1.146}"
LOG="/tmp/youtube_e2e_overnight.log"
echo "Avvio test YouTube → $LOG"
ssh "$HOST" "docker cp /opt/matchlivetv/backend/lib/tasks/youtube_e2e.rake infra-rails-1:/app/lib/tasks/youtube_e2e.rake"
ssh "$HOST" "docker exec infra-rails-1 bin/rails runner \"Redis.new(url: ENV['REDIS_URL']).del('youtube_api:rate_limited_until')\""
ssh "$HOST" "nohup docker exec infra-rails-1 bin/rails youtube:e2e >> $LOG 2>&1 &"
echo "Monitor: ssh $HOST tail -f $LOG"