[object Object]

← back to Dw Yolo Loop

Thibaut mfr-fix: one-line run-push.sh wrapper (no line-wrap mangling; store=prod confirmed)

8da5a2075b63a27af4be2e09f0f47fc892b07b0c · 2026-06-11 15:03:45 -0700 · Steve Abrams

Files touched

Diff

commit 8da5a2075b63a27af4be2e09f0f47fc892b07b0c
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jun 11 15:03:45 2026 -0700

    Thibaut mfr-fix: one-line run-push.sh wrapper (no line-wrap mangling; store=prod confirmed)
---
 thibaut-mfr-fix/run-push.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/thibaut-mfr-fix/run-push.sh b/thibaut-mfr-fix/run-push.sh
new file mode 100755
index 0000000..0d64c97
--- /dev/null
+++ b/thibaut-mfr-fix/run-push.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+# Wrapper so the Thibaut live push runs from ONE short command (no line-wrap mangling).
+#   bash ~/Projects/designerwallcoverings/thibaut-mfr-fix/run-push.sh            # dry-run (first 3)
+#   bash ~/Projects/designerwallcoverings/thibaut-mfr-fix/run-push.sh --apply    # push all 1,096
+#   ...also accepts --only=title|tag  --limit=N   (e.g. --apply --only=title --limit=3 for a canary)
+set -euo pipefail
+cd "$(dirname "$0")"
+
+export SHOPIFY_STORE="designer-laboratory-sandbox.myshopify.com"   # = the live designerwallcoverings.com store
+export DATABASE_URL="postgresql:///dw_unified?host=/tmp"
+export NODE_PATH="/Users/stevestudio2/Projects/Designer-Wallcoverings/node_modules"
+export SHOPIFY_ADMIN_TOKEN="$(grep -hiE '^SHOPIFY_ADMIN_TOKEN=' "$HOME/Projects/secrets-manager/.env" | head -1 | cut -d= -f2- | tr -d '"'"'"' ')"
+
+if [ -z "${SHOPIFY_ADMIN_TOKEN:-}" ]; then
+  echo "FATAL: SHOPIFY_ADMIN_TOKEN not found in ~/Projects/secrets-manager/.env" >&2
+  exit 1
+fi
+echo "store=$SHOPIFY_STORE  token=…${SHOPIFY_ADMIN_TOKEN: -4}  args=${*:-<dry-run>}"
+exec node push-thibaut-live.js "$@"

← cd8b70e Thibaut mfr-fix: direct Shopify Admin REST pusher (DTD verdi  ·  back to Dw Yolo Loop  ·  Thibaut mfr-fix: COMPLETE — 1096/1096 pushed live (0 failed) ca94dcb →