[object Object]

← back to Astek Landing

deploy: guard prod-only runtime data from rsync --delete

9904c55aeb85fbeb43b4015ff7a07f43e1439344 · 2026-09-04 08:25:07 -0700 · Steve

deploy.sh runs 'rsync -az --delete' with no data/ exclude, so a deploy
overwrote the box's runtime file with the local copy and destroyed
everything written since the last deploy. Added a surgical
RSYNC_EXTRA_EXCLUDES for this project's runtime path(s) only, so genuine
build artifacts under data/ keep syncing.

Verified by itemized rsync --dry-run against prod: the runtime file is
listed for transfer WITHOUT the exclude and absent WITH it.

Fleet sweep, TK-11227. Same bug class as the July 2026 artmura/quadrille
mis-target fix and the abramsagency lead-ledger fix (TK-10536).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013mq9RQtVZZEWvreDqqTgv2

Files touched

Diff

commit 9904c55aeb85fbeb43b4015ff7a07f43e1439344
Author: Steve <steve@designerwallcoverings.com>
Date:   Fri Sep 4 08:25:07 2026 -0700

    deploy: guard prod-only runtime data from rsync --delete
    
    deploy.sh runs 'rsync -az --delete' with no data/ exclude, so a deploy
    overwrote the box's runtime file with the local copy and destroyed
    everything written since the last deploy. Added a surgical
    RSYNC_EXTRA_EXCLUDES for this project's runtime path(s) only, so genuine
    build artifacts under data/ keep syncing.
    
    Verified by itemized rsync --dry-run against prod: the runtime file is
    listed for transfer WITHOUT the exclude and absent WITH it.
    
    Fleet sweep, TK-11227. Same bug class as the July 2026 artmura/quadrille
    mis-target fix and the abramsagency lead-ledger fix (TK-10536).
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_013mq9RQtVZZEWvreDqqTgv2
---
 .deploy.conf | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.deploy.conf b/.deploy.conf
index 2755777..ba6a970 100644
--- a/.deploy.conf
+++ b/.deploy.conf
@@ -4,3 +4,10 @@ DEPLOY_PATH="/root/Projects/astek-landing"
 # Live Kamatera port is 9960 (pm2 id 272, deploy 08fa699). 9944 was the local dev port.
 HEALTH_URL="http://localhost:9960/healthz"
 PORT="9960"
+
+# Runtime state written by the LIVE server (customer inquiries). deploy.sh runs
+# `rsync -az --delete`, so without this exclude a deploy overwrites the prod file
+# with the local copy and destroys every inquiry submitted since the last deploy.
+# Surgical on purpose: data/products.json + selection.json ARE build artifacts and
+# MUST keep syncing, so never blanket-exclude data/.
+RSYNC_EXTRA_EXCLUDES="/data/inquiries.jsonl"

← 8710eba auto-data-snapshot: 2026-09-03T02:13:49 (1 data files) — dat  ·  back to Astek Landing  ·  TK-11438: migrate postgres pool to unix socket (darwin fallb ef312d0 →