← back to Fentucci Naturals
scripts/cadence-golive.sh
20 lines
#!/usr/bin/env bash
# Daily go-live cadence tranche for the Fentucci Naturals (Tokiwa) line.
# Steve-approved 2026-07-27 ("arm the cadence"), gated by DTD verdict B (finish-
# then-close): trickle-activate 40/day rather than a bulk dump. go-live.py is
# idempotent — skips already-ACTIVE + golive-done.jsonl, drops the $0/yard variant,
# keeps the $4.25 sample, publishes to 12 channels (Google excluded). Exits 0 as a
# no-op once all 504 are live. Width already reconciled to 36"; Needs-Width dropped.
set -u
ROOT="$HOME/Projects/fentucci-naturals"
LOG="$ROOT/logs/cadence-golive.log"
mkdir -p "$ROOT/logs"
# grep-export, never `source` — an unquoted value in the secrets .env aborts set -a sourcing
SHOPIFY_ADMIN_TOKEN=$(grep '^SHOPIFY_ADMIN_TOKEN=' "$HOME/Projects/secrets-manager/.env" | cut -d= -f2- | tr -d '"')
export SHOPIFY_ADMIN_TOKEN
{
echo "=== fentucci go-live tranche $(date '+%Y-%m-%d %H:%M:%S') ==="
cd "$ROOT" && python3 scripts/go-live.py --apply --limit 40
echo "=== done $(date '+%Y-%m-%d %H:%M:%S') ==="
} >> "$LOG" 2>&1