Begin Wyrm from the game kit
This commit is contained in:
commit
d91b95cfab
73 files changed
+10509
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# The determinism gate: fetch every production ledger and replay it with the
|
||||
# LOCAL engine, comparing each room with what the server shows. A ledger the
|
||||
# new engine replays differently would rewrite a game in progress when the
|
||||
# server restarts, so this runs before every deploy.
|
||||
# deploy/verify-ledgers.sh <droplet-ip-or-host> [https://site]
|
||||
set -euo pipefail
|
||||
HOST="${1:?usage: verify-ledgers.sh <droplet-ip-or-host> [https://site]}"
|
||||
# SITE overrides the public name: the sslip.io address, or a name not yet in DNS.
|
||||
SITE="${2:-${SITE:-https://wyrm.kestrelsnest.social}}"
|
||||
DIR="$(mktemp -d)"
|
||||
trap 'rm -rf "$DIR"' EXIT
|
||||
rsync -az "root@$HOST:/var/lib/wyrm/rooms/" "$DIR/"
|
||||
npx tsx deploy/replay-ledgers.ts "$DIR" "$SITE"
|
||||
Reference in new issue
Block a user