Document deploy architecture in CLAUDE.md (Coolify Docker vs pm2)
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 7s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 7s
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) <noreply@anthropic.com>
This commit is contained in:
17
CLAUDE.md
17
CLAUDE.md
@@ -64,6 +64,23 @@
|
|||||||
| Paperclip | סוכן AI — מריץ Claude Code agents (pm2, מקומי) | `localhost:3100` |
|
| Paperclip | סוכן AI — מריץ Claude Code agents (pm2, מקומי) | `localhost:3100` |
|
||||||
| Infisical | ניהול סודות | `secret.dev.marcus-law.co.il` |
|
| 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**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## מבנה תיקיות
|
## מבנה תיקיות
|
||||||
|
|||||||
Reference in New Issue
Block a user