[object Object]

← back to Interiordesignershowroom

deploy: add push-full-kamatera.sh (full-source sync, avoids per-file divergence 502s)

c988220d7483895e51d27d27ba08def59f03c301 · 2026-08-03 12:39:25 -0700 · Steve

Files touched

Diff

commit c988220d7483895e51d27d27ba08def59f03c301
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Aug 3 12:39:25 2026 -0700

    deploy: add push-full-kamatera.sh (full-source sync, avoids per-file divergence 502s)
---
 deploy/push-full-kamatera.sh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/deploy/push-full-kamatera.sh b/deploy/push-full-kamatera.sh
new file mode 100755
index 0000000..90879c1
--- /dev/null
+++ b/deploy/push-full-kamatera.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+# Full-source push of interiordesignershowroom to Kamatera, then pm2 reload + verify.
+# Pushes ALL source (not one file) so local-only modules like lib/assetv.js can't be
+# left behind — the divergence that 502'd a per-file deploy on 2026-08-03.
+# SAFE: excludes node_modules/.env/.git/logs; NO --delete (never removes prod-only files).
+set -euo pipefail
+HOST="root@45.61.58.125"
+DEST="/root/Projects/interiordesignershowroom"
+APP="interiordesignershowroom"
+cd "$(dirname "$0")/.."
+
+echo "== rsync full source -> $HOST:$DEST =="
+rsync -az \
+  --exclude node_modules --exclude .git --exclude '.env*' \
+  --exclude '*.log' --exclude .DS_Store --exclude 'tmp/' \
+  ./ "$HOST:$DEST/"
+
+echo "== pm2 reload $APP =="
+ssh "$HOST" "cd $DEST && pm2 reload $APP --update-env"
+
+echo "== verify live =="
+sleep 2
+curl -s -m 15 -o /dev/null -w "live HTTP %{http_code}\n" https://interiordesignershowroom.com/
+echo -n "gtag present: "; curl -s -m 15 https://interiordesignershowroom.com/ | grep -oE 'G-[A-Z0-9]{6,}' | head -1 || echo "(none)"

← bc6f4d9 GA4: inject gtag.js (G-DH9G5HL7YJ) into layout head — analyt  ·  back to Interiordesignershowroom  ·  GA4 under strict CSP: allow-list gtag.js origin + self-host 0e28b93 →