← back to Japan Enrich
deploy: japan viewer distributor feature LIVE on japan.designerwallcoverings.com (code-only; correct path/port 9934 recorded; no Shopify, data preserved 20,815)
f26fe666be61488ce1ce6162fa01318c8c597031 · 2026-07-06 14:14:03 -0700 · Steve
Files touched
Diff
commit f26fe666be61488ce1ce6162fa01318c8c597031
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 6 14:14:03 2026 -0700
deploy: japan viewer distributor feature LIVE on japan.designerwallcoverings.com (code-only; correct path/port 9934 recorded; no Shopify, data preserved 20,815)
---
deploy/UPDATE.md | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/deploy/UPDATE.md b/deploy/UPDATE.md
index 865eb06..d87ccb9 100644
--- a/deploy/UPDATE.md
+++ b/deploy/UPDATE.md
@@ -1,5 +1,10 @@
# Update the LIVE japan.designerwallcoverings.com viewer (code-only, zero data risk)
+CONFIRMED LIVE FACTS (2026-07-06): pm2 `japan-viewer` runs from
+`/root/Projects/japan-staging-viewer/viewer` on Kamatera and listens on **port 9934**
+(NOT 9931 — that port is a different app on the box). nginx proxies japan. + china. to it.
+Server-side staging is larger than local (sangetsu 18,272 / lilycolor 2,543 = 20,815 japan).
+
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,
@@ -17,9 +22,10 @@ rsync -avz ~/Projects/japan-enrich/viewer-local/server.js root@45.61.58.12
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' | \
+ssh root@45.61.58.125 "pm2 restart japan-viewer >/dev/null && sleep 2 && \
+ curl -s -u admin:DW2024! 'http://127.0.0.1:9934/api/products' | \
python3 -c 'import sys,json;d=json.load(sys.stdin);print(\"total\",d[\"total\"],\"| distributor?\",\"distributor\" in (d[\"products\"] or [{}])[0])'"
+# NOTE port 9934. Or verify publicly: curl -su admin:DW2024! https://japan.designerwallcoverings.com/api/products
```
Expect step 3 to print `distributor? True`. Then hard-reload
← 1521e3c japan: code-only UPDATE runbook for live japan.designerwallc
·
back to Japan Enrich
·
japan viewer: URL-param deep-link + sharable state for every 8b2471a →