From fb7524e847c9df8c482e6b58d30c9952f951a4d9 Mon Sep 17 00:00:00 2001 From: type-two Date: Sun, 5 Jul 2026 10:31:55 +1000 Subject: [PATCH] web: document the live deploy path + nginx bind-mount gotcha Live at https://monsterrobot.games/engine/ (dealgod VPS, dealgod-nginx /engine alias over /opt/dealgod/images/engine/). Co-Authored-By: Claude Fable 5 --- web/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/build.sh b/web/build.sh index 1f3277c..38d02ec 100755 --- a/web/build.sh +++ b/web/build.sh @@ -1,6 +1,13 @@ #!/bin/sh # Build the browser version of MRPGI into web/dist/ (self-contained, static). # Requires the wasm target: rustup target add wasm32-unknown-unknown +# +# Deploy (live at https://monsterrobot.games/engine/): +# scp web/dist/* root@100.94.195.115:/opt/dealgod/images/engine/ +# Served by the dealgod-nginx container via a `location /engine/` alias in +# /opt/dealgod/nginx/dealgod-servers.conf. NOTE: edit that file IN PLACE +# (python open("w") / tee), never `sed -i` — it's a single-file bind mount +# and an inode swap desyncs the container until a `docker restart`. set -e cd "$(dirname "$0")/.." cargo build -p mrpgi --release --target wasm32-unknown-unknown