diff --git a/deploy-assets/recordstoreguy.jpg b/deploy-assets/recordstoreguy.jpg new file mode 100644 index 0000000..ba2ab78 Binary files /dev/null and b/deploy-assets/recordstoreguy.jpg differ diff --git a/deploy-assets/recordstoreguy_riso.jpg b/deploy-assets/recordstoreguy_riso.jpg new file mode 100644 index 0000000..a31e437 Binary files /dev/null and b/deploy-assets/recordstoreguy_riso.jpg differ diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..e34969c --- /dev/null +++ b/deploy.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash +# Deploy Record Store Guy to monsterrobot.games/games/recordstoreguy/ +# Pattern: the game dir is a READ-ONLY bind mount into forum-nginx, so we rsync +# to the HOST path directly (no docker cp, no nginx reload needed for static files). +# Covers live in the lander's covers/ dir; the tile is added to index.html by hand +# (see README / the tile block below), backed up first. +set -euo pipefail + +HOST="humanjing@100.71.119.27" +BASE="/home/humanjing/monsterrobot.games" +DEST="$BASE/games/recordstoreguy" +HERE="$(cd "$(dirname "$0")" && pwd)" + +echo "== 1. sync engine → $DEST" +rsync -az --delete \ + --exclude='.DS_Store' \ + "$HERE/engine/" "$HOST:$DEST/" + +echo "== 2. covers" +scp -q "$HERE/deploy-assets/recordstoreguy.jpg" "$HERE/deploy-assets/recordstoreguy_riso.jpg" \ + "$HOST:$BASE/covers/" + +echo "== 3. verify live (cache-busted)" +sleep 1 +code=$(curl -s -o /dev/null -w '%{http_code}' "https://monsterrobot.games/games/recordstoreguy/?cb=$RANDOM") +title=$(curl -s "https://monsterrobot.games/games/recordstoreguy/?cb=$RANDOM" | grep -oiE '