generated from knso/webklar-preview-template
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# Beyt Beytak Abu Ali
|
|
|
|
Kunden-Website mit automatischer Preview unter `*.project.webklar.com`.
|
|
|
|
## Preview aktivieren
|
|
|
|
Dieses Repo enthaelt [`.webklar-preview.json`](.webklar-preview.json). Beim Push auf den konfigurierten Branch startet der Deploy:
|
|
|
|
- URL: `https://project.webklar.com/webhook/gitea`
|
|
- Vorschau: `https://Beyt-Beytak-Abu-Ali.project.webklar.com`
|
|
|
|
## Konfiguration (`.webklar-preview.json`)
|
|
|
|
| Feld | Beschreibung |
|
|
|------|----------------|
|
|
| `enabled` | `true` = Preview-Deploy aktiv |
|
|
| `type` | `static` (Dateien direkt) oder `node_build` (npm build) |
|
|
| `branch` | Branch fuer Deploy, z. B. `main` |
|
|
| `displayName` | Anzeigename im Kundenportal |
|
|
| `subdomain` | Optional; Default = Repo-Name |
|
|
| `index` | Optional; Unterordner mit `index.html` als Webroot (z. B. `www`) — Default = Repo-Root |
|
|
|
|
**Keine Passwoerter** in dieser Datei.
|
|
|
|
### Dieses Projekt
|
|
|
|
- **Typ:** `static` (reine HTML/CSS/JS-Seite, kein npm-Build)
|
|
- **Webroot:** [`www/`](www/) — Einstieg `www/index.html`
|
|
|
|
## Gitea-Webhook (einmalig pro Org/Repo)
|
|
|
|
- **URL:** `https://project.webklar.com/webhook/gitea`
|
|
- **Secret:** `GITEA_WEBHOOK_TOKEN` (Server-`.env`)
|
|
- **Events:** Push
|