← back to Dw Marketing Viewer
Stage tested wallpapersback.com hero-rebrand deploy (hero wordmark + favicon + .deploy.conf fix)
1bf2d9545499e9921cf5016c2a5aaef3c7026535 · 2026-06-23 13:07:08 -0700 · Steve
Files touched
M .gitignoreA site-deploy/_remote-edit.pyA site-deploy/apply-rebrand.shA site-deploy/hero-rebrand-mockup.jpgA site-deploy/wpb-hero-wordmark.png
Diff
commit 1bf2d9545499e9921cf5016c2a5aaef3c7026535
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Jun 23 13:07:08 2026 -0700
Stage tested wallpapersback.com hero-rebrand deploy (hero wordmark + favicon + .deploy.conf fix)
---
.gitignore | 3 +++
site-deploy/_remote-edit.py | 46 ++++++++++++++++++++++++++++++++++++
site-deploy/apply-rebrand.sh | 25 ++++++++++++++++++++
site-deploy/hero-rebrand-mockup.jpg | Bin 0 -> 88346 bytes
site-deploy/wpb-hero-wordmark.png | Bin 0 -> 37167 bytes
5 files changed, 74 insertions(+)
diff --git a/.gitignore b/.gitignore
index 08240ae..9651de0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,6 @@ tmp/
.DS_Store
dist/
build/
+_live-index.html
+_rebranded-test.html
+__pycache__/
diff --git a/site-deploy/_remote-edit.py b/site-deploy/_remote-edit.py
new file mode 100644
index 0000000..0b25d3c
--- /dev/null
+++ b/site-deploy/_remote-edit.py
@@ -0,0 +1,46 @@
+#!/usr/bin/env python3
+# Runs ON the Kamatera server. Rebrands wallpapersback.com hero to the Optima
+# logo image + fixes the stale wallco-ai .deploy.conf. Backup-safe, abort-safe.
+import sys, re, time
+BASE = "/root/public-projects/wallpapersback"
+PUB = BASE + "/public"
+ts = int(time.time())
+
+# ---- 1. hero rebrand in index.html ----
+idx = PUB + "/index.html"
+s = open(idx).read()
+old = ' <h1 class="hero-wordmark">wallpapersback</h1>'
+new = (' <h1 class="hero-wordmark"><img class="hero-wordmark-img" '
+ 'src="/wpb-hero-wordmark.png" alt="Wallpaper's Back"></h1>')
+css = '.hero-wordmark-img{width:min(820px,86vw);height:auto;display:block;margin:18px auto 0}'
+anchor = '@media (max-width:760px) { .hero-wordmark { font-size:clamp(32px, 12vw, 64px) } }'
+
+if 'hero-wordmark-img' in s:
+ print(" · hero already rebranded — skipping index.html")
+elif old not in s:
+ print(" ! ERROR: hero <h1> not found — aborting, NO changes made")
+ sys.exit(1)
+else:
+ open(idx + ".bak-rebrand-%d" % ts, "w").write(s)
+ s = s.replace(old, new, 1)
+ if 'hero-wordmark-img{' not in s and anchor in s:
+ s = s.replace(anchor, anchor + "\n" + css, 1)
+ open(idx, "w").write(s)
+ print(" ✓ hero rebranded + CSS injected (backup: index.html.bak-rebrand-%d)" % ts)
+
+# ---- 2. fix stale wallco-ai .deploy.conf ----
+cf = BASE + "/.deploy.conf"
+try:
+ c = open(cf).read()
+ c2 = re.sub(r'PROJECT_NAME=.*', 'PROJECT_NAME="wallpapersback"', c)
+ c2 = re.sub(r'DEPLOY_PATH=.*', 'DEPLOY_PATH="/root/public-projects/wallpapersback"', c2)
+ c2 = re.sub(r'HEALTH_URL=.*', 'HEALTH_URL="https://wallpapersback.com/"', c2)
+ if c2 != c:
+ open(cf + ".bak-%d" % ts, "w").write(c)
+ open(cf, "w").write(c2)
+ print(" ✓ .deploy.conf corrected (no more wallco-ai; backup written)")
+ else:
+ print(" · .deploy.conf already clean")
+except FileNotFoundError:
+ print(" · no .deploy.conf found — skipped")
+print("DONE")
diff --git a/site-deploy/apply-rebrand.sh b/site-deploy/apply-rebrand.sh
new file mode 100755
index 0000000..d91e2b1
--- /dev/null
+++ b/site-deploy/apply-rebrand.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+# One-command wallpapersback.com hero rebrand → new Optima logo.
+# Pushes assets, swaps the hero (backup-safe), fixes the stale .deploy.conf, verifies.
+# Targets wallpapersback ONLY — never wallco-ai.
+set -euo pipefail
+SD="$HOME/Projects/dw-marketing-viewer/site-deploy"
+SRV="my-server"
+PUB="/root/public-projects/wallpapersback/public"
+
+echo "→ pushing assets (hero wordmark + favicon)…"
+scp -q "$SD/wpb-hero-wordmark.png" "$SD/favicon.svg" "$SD/favicon.ico" "$SRV:$PUB/"
+scp -q "$SD/_remote-edit.py" "$SRV:/tmp/wpb-remote-edit.py"
+
+echo "→ applying hero rebrand + .deploy.conf fix (backups made server-side)…"
+ssh "$SRV" "python3 /tmp/wpb-remote-edit.py"
+
+echo "→ verifying live…"
+sleep 1
+if curl -s https://wallpapersback.com/ | grep -q "hero-wordmark-img"; then
+ echo " ✓ new hero logo is live"
+else
+ echo " · hero img not seen in HTML yet (CDN/cache?) — hard-refresh to check"
+fi
+curl -s -o /dev/null -w " favicon.svg → HTTP %{http_code}\n" https://wallpapersback.com/favicon.svg
+echo "Done. Hard-refresh wallpapersback.com (Cmd-Shift-R) to see the new look."
diff --git a/site-deploy/hero-rebrand-mockup.jpg b/site-deploy/hero-rebrand-mockup.jpg
new file mode 100644
index 0000000..fb612a6
Binary files /dev/null and b/site-deploy/hero-rebrand-mockup.jpg differ
diff --git a/site-deploy/wpb-hero-wordmark.png b/site-deploy/wpb-hero-wordmark.png
new file mode 100644
index 0000000..3513631
Binary files /dev/null and b/site-deploy/wpb-hero-wordmark.png differ
← 7e80f09 Stage new WB favicon (svg + multi-size ico) for wallpapersba
·
back to Dw Marketing Viewer
·
Fold header/footer wordmark cleanup into hero-rebrand deploy e297a3d →