From fe7cc40d05f4f5623d49c4857843344330a8d0f5 Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 15 Apr 2026 10:49:45 +0000 Subject: [PATCH] Document deploy architecture in CLAUDE.md (Coolify Docker vs pm2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Legal-AI runs as Coolify Docker container — code changes require git push + Coolify deploy. Paperclip runs locally via pm2. Added explicit warning section to prevent attempting local uvicorn. Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 390f9d7..4f2a5a4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -64,6 +64,23 @@ | Paperclip | סוכן AI — מריץ Claude Code agents (pm2, מקומי) | `localhost:3100` | | Infisical | ניהול סודות | `secret.dev.marcus-law.co.il` | +### ⚠️ ארכיטקטורת Deploy — חובה לקרוא + +**עוזר משפטי (Legal-AI)** — רץ כ-**Docker container דרך Coolify**: +- UUID: `gyjo0mtw2c42ej3xxvbz8zio` +- שינוי קוד ב-`web/` או `web-ui/` **לא נכנס לתוקף** עד ש: + 1. עושים `git commit` + `git push origin main` + 2. מריצים deploy דרך Coolify (`mcp__coolify__deploy`) + 3. ממתינים ~2-4 דקות לבנייה +- **אסור** לנסות להריץ uvicorn מקומית — אין סביבת Python על המכונה +- ה-container מריץ Next.js (`:3000`, חשוף) + FastAPI (`:8000`, פנימי) +- בדיקה: `curl https://legal-ai.nautilus.marcusgroup.org/api/...` + +**Paperclip** — רץ **מקומית דרך pm2**: +- פורט: `localhost:3100`, DB: `localhost:54329` +- שינויי קוד נכנסים לתוקף אחרי `pm2 restart paperclip` +- **אין צורך ב-Docker או Coolify** + --- ## מבנה תיקיות