← back to Rentv

.deploy.conf

23 lines

PROJECT_NAME=rentv
DEPLOY_HOST=45.61.58.125
DEPLOY_PATH=/root/public-projects/rentv
HEALTH_URL=http://localhost:9704/api/health
INSTALL_CMD="npm ci --production"
BUILD_CMD=""
# Never overwrite prod's accumulated real newsletter signups / live pipeline data with the local file.
# vimeo-library.json is refreshed in place by the prod cron (pull-vimeo-library.py) — don't clobber it on deploy.
# social-drafts.json is admin-composed on prod (POST /api/social/draft) — prod copy is authoritative, never clobber.
# news-archive.json accumulates on prod (cron pull-cre-news/build-news-archive once approved) — never clobber with the local seed.
# deals-registry.json accumulates on prod (the news cron chains pull-deals → registry, TK-10246) — never clobber prod's growing deal history + change log with the local dev copy.
# deals.json / news.json / markets.json / search-index-meta.json are ALL prod-cron runtime output (pull-cre-news → pull-deals → build-index); prod's live crawl owns them — never overwrite with the local dev copy (added 2026-08-06 when the cycle 28-33 parser fixes deploy: code-only, prod regenerates the data on its next cron).
# public/img/news = prod-cron + live article-proxy runtime output (localize.cjs downloads each rentv.com photo here on prod). With rsync --delete, a deploy was WIPING prod's downloaded images (local dir is gitignored/stale) → every front-page image 404'd blank (TK-10284, 2026-08-06). Prod owns this dir — never clobber it.
# data/active-templates.json = the LIVE select-to-live choice (TK-10356), set by admins on prod via
# POST /api/admin/active-template — prod owns it; never clobber it with the local dev copy on deploy.
# data/advertise-inquiries.jsonl = inbound advertiser leads captured on prod via POST /api/advertise
# (TK-10061). PII + prod-accumulated — never clobber with the local dev copy on deploy.
RSYNC_EXTRA_EXCLUDES="data/subscribers.jsonl data/advertise-inquiries.jsonl data/posts.json data/forsale.json data/vimeo-library.json data/social-drafts.json data/news-archive.json data/deals-registry.json data/deals.json data/news.json data/markets.json data/search-index-meta.json data/search-index.jsonl data/ticker.json data/active-templates.json public/img/news public/audio data/ad-reservations.jsonl data/crm-imported.jsonl data/linkedin-company-follows.csv data/linkedin-connections.csv data/linkedin-export/"
# NOTE (2026-07-28): renamed from rentv-v1 -> rentv (unified RENTV app). The prod
# dir /root/public-projects/rentv-v1 must be renamed to /root/public-projects/rentv
# and pm2 re-registered as `rentv` as part of the Steve-gated cutover — see
# ~/.claude/yolo-queue/pending-approval/rentv-consolidation-cutover.md