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>
This commit is contained in:
15
scripts/build_mobile_apk_prod.sh
Executable file
15
scripts/build_mobile_apk_prod.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# APK release per telefono → API produzione
|
||||
set -euo pipefail
|
||||
export PATH="${HOME}/flutter/bin:${PATH}"
|
||||
|
||||
API_BASE_URL="${API_BASE_URL:-https://www.matchlivetv.it}"
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
cd "$ROOT/mobile"
|
||||
flutter pub get
|
||||
flutter build apk --release \
|
||||
--dart-define="API_BASE_URL=${API_BASE_URL}"
|
||||
|
||||
echo "APK: mobile/build/app/outputs/flutter-apk/app-release.apk"
|
||||
echo "API_BASE_URL=${API_BASE_URL}"
|
||||
11
scripts/overnight_youtube_e2e.sh
Executable file
11
scripts/overnight_youtube_e2e.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user