[object Object]

← back to Big Red

deploy: repoint aichat to /opt/big-red (actual run dir) + protect .pm2 from rsync --delete

43c1043494959f67173b036f5dec34f03d8b506f · 2026-06-03 08:28:24 -0700 · Steve Abrams

Audit found the live aichat pm2 process runs from /opt/big-red (user bigred),
not /root/Projects/big-red — so /deploy was landing in the wrong dir and
smoke-testing the wrong port, a no-op against prod that always reported fail.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 43c1043494959f67173b036f5dec34f03d8b506f
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jun 3 08:28:24 2026 -0700

    deploy: repoint aichat to /opt/big-red (actual run dir) + protect .pm2 from rsync --delete
    
    Audit found the live aichat pm2 process runs from /opt/big-red (user bigred),
    not /root/Projects/big-red — so /deploy was landing in the wrong dir and
    smoke-testing the wrong port, a no-op against prod that always reported fail.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 .deploy.conf | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.deploy.conf b/.deploy.conf
index 6ec11c6..6a0d7c0 100644
--- a/.deploy.conf
+++ b/.deploy.conf
@@ -1,8 +1,13 @@
 # Big Red — customer chat (aichat).
 # Used by ~/Projects/_shared/scripts/deploy.sh + /deploy skill.
 PROJECT_NAME=aichat
-DEPLOY_PATH=/root/Projects/big-red
+# The LIVE aichat pm2 process runs from /opt/big-red (user bigred), NOT
+# /root/Projects/big-red. Repointed 2026-06-03 after audit found deploys were
+# landing in the wrong dir (a no-op against prod). See git log.
+DEPLOY_PATH=/opt/big-red
 HEALTH_URL=http://127.0.0.1:9936/api/health
+# /opt/big-red/.pm2 is the bigred user's pm2 home — protect it from rsync --delete.
+RSYNC_EXTRA_EXCLUDES=".pm2"
 # Public URL once Cloudflare/DNS configured:
 # https://chat.designerwallcoverings.com/api/health
 PUBLIC_URL=https://chat.designerwallcoverings.com

← 9333465 fix(port): align all config to live prod port 9936 (was 9935  ·  back to Big Red  ·  snapshot: favicon <link> in desktop.html + DWAB-191385 price f67a7bb →