← back to Wallpapercanada
wallpapercanada: add self-verifying deploy-index.sh
0f7862fef834012c4bf7a3fa63646a5fd1a4742d · 2026-09-10 00:00:07 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015acgmNP9spwqQLjfFcf1Qs
Files touched
A scripts/deploy-index.sh
Diff
commit 0f7862fef834012c4bf7a3fa63646a5fd1a4742d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 10 00:00:07 2026 -0700
wallpapercanada: add self-verifying deploy-index.sh
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015acgmNP9spwqQLjfFcf1Qs
---
scripts/deploy-index.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/scripts/deploy-index.sh b/scripts/deploy-index.sh
new file mode 100755
index 0000000..1a6e535
--- /dev/null
+++ b/scripts/deploy-index.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# One-shot: push public/index.html to prod and VERIFY the DW footer link is live.
+# Static file served by express.static → no restart needed. Reversible: git revert d640e43, re-run.
+set -euo pipefail
+cd "$(dirname "$0")/.."
+PROD="${PROD_HOST:-root@45.61.58.125}"
+SSH_OPTS="-o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new"
+REMOTE="/root/Projects/wallpapercanada/public/index.html"
+
+rsync -az -e "ssh $SSH_OPTS" public/index.html "$PROD:$REMOTE"
+echo "[deploy-index] rsync ok"
+sleep 1
+if curl -s --max-time 15 https://wallpapercanada.com | grep -q 'designerwallcoverings.com" target="_blank"'; then
+ echo "[deploy-index] VERIFIED: DW link live on https://wallpapercanada.com"
+else
+ echo "[deploy-index] WARN: DW link not detected on live page — check manually"
+fi
+echo "[deploy-index] done $(date -u +%FT%TZ)"
← d640e43 wallpapercanada: add visible footer link to Designer Wallcov
·
back to Wallpapercanada
·
wallpapercanada: add read-only prod diagnostic (find live do dfac548 →