CI: Gitea-Action baut und deployt bei Push auf main (Runner-Whitelist, dist-Laufzeitmount)
Build & Deploy / deploy (push) Successful in 23s
Build & Deploy / deploy (push) Successful in 23s
This commit is contained in:
@@ -28,10 +28,16 @@ npm run build # Produktions-Build → app/dist/
|
||||
|
||||
## Deployment (VPS 82.165.218.97, /opt/1bis8)
|
||||
|
||||
**Automatisch:** Bei jedem Push auf `main` baut die Gitea-Action
|
||||
(`.gitea/workflows/deploy.yml`) die App und kopiert `dist/` auf den Server –
|
||||
der Web-Container nutzt das Verzeichnis als Laufzeit-Mount und nimmt die
|
||||
Änderungen sofort an. Anschließend läuft ein Health-Check gegen beide Domains.
|
||||
|
||||
**Manuell:**
|
||||
|
||||
```bash
|
||||
cd app && npm run build
|
||||
scp -P 38592 -r dist root@82.165.218.97:/opt/1bis8/web/
|
||||
ssh -p 38592 root@82.165.218.97 "cd /opt/1bis8 && docker compose up -d --build"
|
||||
```
|
||||
|
||||
- TLS, Subdomains und Routing: Nginx Proxy Manager (`npm_default`-Netz)
|
||||
|
||||
Reference in New Issue
Block a user