The new kit setup, its own Caddy site file and access log, and the host's address everywhere. The old droplet forwards to hall until the A record moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
13 lines
643 B
Bash
Executable File
13 lines
643 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Mirror the player reports, the keeper's replies and the players' screenshots
|
|
# to a local folder, and write a digest beside them for reading. Run from the
|
|
# repository root:
|
|
# deploy/pull-reports.sh [host] [folder] (default ~/Desktop/hnefatafl-reports)
|
|
set -euo pipefail
|
|
HOST="${1:-159.203.115.252}"
|
|
OUT="${2:-$HOME/Desktop/hnefatafl-reports}"
|
|
mkdir -p "$OUT/images"
|
|
scp -q "root@$HOST:/var/lib/hnefatafl/feedback.jsonl" "$OUT/feedback.jsonl" 2>/dev/null || : > "$OUT/feedback.jsonl"
|
|
rsync -aq "root@$HOST:/var/lib/hnefatafl/feedback-images/" "$OUT/images/" 2>/dev/null || true
|
|
npx tsx deploy/report-digest.ts "$OUT"
|