sync efactura-generator -> 0.9-beta-14
Mirror sincronizat cu repo canonic /workspace/efactura-generator. CLAUDE.md: documentat workflow sync + exclude config.json din rsync deploy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
22
CLAUDE.md
22
CLAUDE.md
@@ -9,7 +9,10 @@ Romfast company website (2025 version) for a Romanian ERP software company. Prom
|
||||
## Deploy
|
||||
|
||||
```bash
|
||||
rsync -avz --exclude='.git' --exclude='.superdesign' --exclude='.claude' --exclude='verify-cleanup.sh' \
|
||||
rsync -avz \
|
||||
--exclude='.git' --exclude='.superdesign' --exclude='.claude' \
|
||||
--exclude='verify-cleanup.sh' \
|
||||
--exclude='efactura-generator/config.json' \
|
||||
-e "ssh -p 7822" \
|
||||
/home/moltbot/workspace/romfast-website/ \
|
||||
romfastr@nl1-ss18.a2hosting.com:~/public_html/
|
||||
@@ -17,6 +20,19 @@ rsync -avz --exclude='.git' --exclude='.superdesign' --exclude='.claude' --exclu
|
||||
|
||||
- **Host:** nl1-ss18.a2hosting.com | **Port:** 7822 | **User:** romfastr
|
||||
- **Document root:** `~/public_html/` — SSH key auth (no password)
|
||||
- **Important:** rsync-ul NU folosește `--delete`, deci nu șterge nimic pe prod. `efactura-generator/config.json` e exclus explicit ca să nu poată fi suprascris niciodată din repo (conține `api_key` și e gestionat doar pe server).
|
||||
|
||||
## Sub-proiectul `efactura-generator/`
|
||||
|
||||
Directorul `efactura-generator/` din acest repo este o **oglindă** a proiectului canonic `/workspace/efactura-generator/` (repo separat: `git@gitea.romfast.ro:romfast/efactura-generator.git`). Sursa de adevăr e acolo.
|
||||
|
||||
**NU edita direct fișierele din `efactura-generator/` aici** — modificările se pierd la următorul sync. În schimb:
|
||||
|
||||
1. Editează în `/workspace/efactura-generator/` (repo canonic).
|
||||
2. Rulează `/workspace/efactura-generator/sync-to-website.sh` care propagă schimbările în `efactura-generator/` din acest repo cu excluderile potrivite (fără `config.json`, fără Dockerfile, fără docs interne etc.).
|
||||
3. Commit aici (`romfast-website`) și deploy cu rsync-ul de mai sus.
|
||||
|
||||
`config.json` de pe server (`~/public_html/efactura-generator/config.json`) conține `api_key` și nu e nici în repo, nici în sync — se gestionează manual pe a2hosting.
|
||||
|
||||
## Development
|
||||
|
||||
@@ -27,10 +43,10 @@ python3 -m http.server 8000
|
||||
# Access at http://localhost:8000
|
||||
```
|
||||
|
||||
The `efactura-generator/` sub-app has its own Node.js server:
|
||||
The `efactura-generator/` sub-app has its own Node.js server (rulează din repo-ul canonic, nu de aici):
|
||||
|
||||
```bash
|
||||
cd efactura-generator && node js/server.js
|
||||
cd /workspace/efactura-generator && node js/server.js
|
||||
# Access at http://localhost:3000
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user