← back to Japan Enrich
japan: code-only UPDATE runbook for live japan.designerwallcoverings.com (2 files + pm2 restart, no staging/DB/Shopify)
1521e3cf4c36720060158d87d507e293d6422f0d · 2026-07-06 14:05:44 -0700 · Steve
Files touched
Diff
commit 1521e3cf4c36720060158d87d507e293d6422f0d
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 6 14:05:44 2026 -0700
japan: code-only UPDATE runbook for live japan.designerwallcoverings.com (2 files + pm2 restart, no staging/DB/Shopify)
---
deploy/UPDATE.md | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/deploy/UPDATE.md b/deploy/UPDATE.md
new file mode 100644
index 0000000..865eb06
--- /dev/null
+++ b/deploy/UPDATE.md
@@ -0,0 +1,31 @@
+# Update the LIVE japan.designerwallcoverings.com viewer (code-only, zero data risk)
+
+japan. is already live on Kamatera (pm2 `japan-viewer`, behind Basic Auth admin:DW2024!).
+The distributor + import features live entirely in TWO code files — the distributor value
+is derived at runtime, so we push ONLY the code and restart. **No staging file is touched,
+no --delete, no DB write, no Shopify.** The live catalog data is preserved as-is.
+
+Run from Mac2 (or prefix each with `! ` in the Claude prompt so output lands in-session):
+
+```sh
+# 1) discover the live working dir from pm2 (no guessing the path)
+DIR=$(ssh root@45.61.58.125 "pm2 describe japan-viewer | awk -F'cwd' '/exec cwd/{print \$2}' | tr -d ': '")
+echo "live dir → $DIR"
+
+# 2) push ONLY the two code files
+rsync -avz ~/Projects/japan-enrich/viewer-local/server.js root@45.61.58.125:"$DIR/server.js"
+rsync -avz ~/Projects/japan-enrich/viewer-local/public/index.html root@45.61.58.125:"$DIR/public/index.html"
+
+# 3) restart + verify the distributor field is now live
+ssh root@45.61.58.125 "pm2 restart japan-viewer >/dev/null && sleep 1 && \
+ curl -s -u admin:DW2024! 'http://127.0.0.1:9931/api/products' | \
+ python3 -c 'import sys,json;d=json.load(sys.stdin);print(\"total\",d[\"total\"],\"| distributor?\",\"distributor\" in (d[\"products\"] or [{}])[0])'"
+```
+
+Expect step 3 to print `distributor? True`. Then hard-reload
+https://japan.designerwallcoverings.com (admin:DW2024!) to see the Goodrich chips,
+Distributor facet/sort, and the ⤓ Import button + queue drawer.
+
+## Rollback
+`ssh root@45.61.58.125 "cd $DIR && git checkout server.js public/index.html && pm2 restart japan-viewer"`
+(if the live dir is a git checkout; otherwise re-push the previous files).
← 4ebbbd5 japan: deploy artifacts for Kamatera go-live (nginx vhost ja
·
back to Japan Enrich
·
deploy: japan viewer distributor feature LIVE on japan.desig f26fe66 →