← back to Enrich Local Hybrid
DEPLOY.md: exact go-live = one line in full-monte/.env (Phase-3 spawns enrich-ai-tags w/ inherited env)
168999ca22130bacc436f00cfedb107917ae3ab1 · 2026-06-24 08:59:40 -0700 · Steve
Files touched
Diff
commit 168999ca22130bacc436f00cfedb107917ae3ab1
Author: Steve <steve@designerwallcoverings.com>
Date: Wed Jun 24 08:59:40 2026 -0700
DEPLOY.md: exact go-live = one line in full-monte/.env (Phase-3 spawns enrich-ai-tags w/ inherited env)
---
DEPLOY.md | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/DEPLOY.md b/DEPLOY.md
index cd7e8ec..0f54b19 100644
--- a/DEPLOY.md
+++ b/DEPLOY.md
@@ -28,13 +28,20 @@ ssh my-server 'cd /root/DW-Agents/vendor-scrapers && ENRICH_PROVIDER=local node
```
## GO LIVE (the gated step — only after the dry-run looks good)
-Find the nightly cron that runs enrich and add `ENRICH_PROVIDER=local` to its env:
+The nightly enrichment is NOT `node enrich-ai-tags.js` directly — it's three Phase-3
+crons (tier 1/2/3 @ 9/10/11 UTC ≈ 2-4am PT) running `full-monte-batch.js --phase 3`,
+which SPAWNS `enrich-ai-tags.js` with `env: {...process.env}`. All three source
+`/root/DW-Agents/full-monte/.env`, so the entire go-live is ONE line in that file:
```bash
-ssh my-server 'crontab -l | grep -i enrich' # find the line
-# edit that cron entry / its wrapper to export ENRICH_PROVIDER=local before node enrich-ai-tags.js
+ssh my-server 'grep -q "^ENRICH_PROVIDER=" /root/DW-Agents/full-monte/.env || echo "ENRICH_PROVIDER=local" >> /root/DW-Agents/full-monte/.env'
```
-**Rollback:** unset `ENRICH_PROVIDER` (or set `=gemini`) → instantly back on Gemini.
-Or restore `enrich-ai-tags.js.bak-gemini-*`.
+Takes effect next Phase-3 run (cron re-sources .env each run; no restart). Covers all tiers.
+
+**Rollback (instant):**
+```bash
+ssh my-server "sed -i '/^ENRICH_PROVIDER=/d' /root/DW-Agents/full-monte/.env"
+```
+Or restore `enrich-ai-tags.js.bak-gemini-*`. Per-image Gemini fallback also auto-covers any local outage.
## Env knobs
- `ENRICH_PROVIDER` = local | hybrid | gemini (default gemini)
← 4008570 hybrid local enrich-ai-tags: ground-truth hex (Pillow) + qwe
·
back to Enrich Local Hybrid
·
fix: normalize image through Pillow→JPEG before VL (catalog 204b3e2 →