| set -e | |
| ROAMIFY=/home/joe/repo_dev/roamify | |
| PYTHON=/home/joe/repo_dev/roamify/.venv/bin/python3 | |
| LOG=$ROAMIFY/warmup_batch.log | |
| # Cities to process, in order | |
| CITIES=( | |
| "Cape Town" | |
| "Rio de Janeiro" | |
| "Istanbul" | |
| "Dubai" | |
| "Seoul" | |
| "Bali" | |
| "Prague" | |
| "San Francisco" | |
| "Marrakech" | |
| "Kyoto" | |
| ) | |
| echo "=== Batch warmup started $(date) ===" > "$LOG" | |
| for city in "${CITIES[@]}"; do | |
| echo "" | |
| echo "═══ Processing: $city ═══" | tee -a "$LOG" | |
| echo "Started: $(date)" >> "$LOG" | |
| cd "$ROAMIFY" | |
| if $PYTHON scripts/warmup.py --city "$city" >> "$LOG" 2>&1; then | |
| echo "✅ $city — DONE at $(date)" | tee -a "$LOG" | |
| else | |
| echo "❌ $city — FAILED at $(date)" | tee -a "$LOG" | |
| echo "See $LOG for details" | |
| exit 1 | |
| fi | |
| done | |
| echo "" | |
| echo "🎉 All cities complete at $(date)" | tee -a "$LOG" | |