[object Object]

← back to Games Agentabrams

deploy: add rsync --delete so retired games are purged from server

5c7f274f3ed93dd30bbf57553d990c0d2f023772 · 2026-07-25 00:44:57 -0700 · Steve

Files touched

Diff

commit 5c7f274f3ed93dd30bbf57553d990c0d2f023772
Author: Steve <steve@designerwallcoverings.com>
Date:   Sat Jul 25 00:44:57 2026 -0700

    deploy: add rsync --delete so retired games are purged from server
---
 deploy/deploy.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/deploy/deploy.sh b/deploy/deploy.sh
index 7c1f59e..bc2a20e 100755
--- a/deploy/deploy.sh
+++ b/deploy/deploy.sh
@@ -24,8 +24,12 @@ else
 fi
 
 # 2. Content
-rsync -az --exclude .git --exclude tests --exclude deploy "$HERE/" $KAMATERA:/var/www/$SITE/
-echo "content rsynced"
+# --delete: mirror the local tree so retired games are purged from the server
+# too (the site dir is fully generated from this repo). --exclude patterns also
+# protect .git/tests/deploy on the destination from deletion. Scoped to the one
+# site dir; --delete only ever removes files under /var/www/$SITE/.
+rsync -az --delete --exclude .git --exclude tests --exclude deploy "$HERE/" $KAMATERA:/var/www/$SITE/
+echo "content rsynced (mirrored)"
 
 # 3. nginx (80 first so certbot HTTP-01 can pass)
 scp -q "$HERE/deploy/$SITE.nginx" $KAMATERA:/etc/nginx/sites-available/$SITE

← 0bbf2b0 Retire old particle-text (Particle Word); keep improved Star  ·  back to Games Agentabrams  ·  Add 90210 Trivia game — glam Beverly Hills pop quiz, timed w 4a98487 →