generated from knso/webklar-preview-template
webseite-version-01
This commit is contained in:
40
README.md
40
README.md
@@ -1,13 +1,13 @@
|
||||
# webklar-preview-template
|
||||
# Beyt Beytak Abu Ali
|
||||
|
||||
Vorlage fuer Kunden-Websites mit automatischer Preview unter `*.project.webklar.com`.
|
||||
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://<subdomain>.project.webklar.com`
|
||||
- Vorschau: `https://Beyt-Beytak-Abu-Ali.project.webklar.com`
|
||||
|
||||
## Konfiguration (`.webklar-preview.json`)
|
||||
|
||||
@@ -18,40 +18,14 @@ Dieses Repo enthaelt [`.webklar-preview.json`](.webklar-preview.json). Beim Push
|
||||
| `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`) <20> Default = Repo-Root |
|
||||
|
||||
**Keine Passwoerter** in dieser Datei.
|
||||
|
||||
### Beispiel fuer statische Seite
|
||||
### Dieses Projekt
|
||||
|
||||
```json
|
||||
{
|
||||
"enabled": true,
|
||||
"type": "static",
|
||||
"branch": "main",
|
||||
"displayName": "Friseur Mueller",
|
||||
"subdomain": "friseur-mueller"
|
||||
}
|
||||
```
|
||||
|
||||
### Beispiel fuer Vite/React (Build)
|
||||
|
||||
```json
|
||||
{
|
||||
"enabled": true,
|
||||
"type": "node_build",
|
||||
"branch": "main",
|
||||
"displayName": "Restaurant Demo",
|
||||
"subdomain": "restaurant-demo"
|
||||
}
|
||||
```
|
||||
|
||||
## Neues Projekt aus dieser Vorlage
|
||||
|
||||
1. In Gitea: **Use this template** / Repository aus Template erstellen
|
||||
2. `displayName` und `subdomain` in `.webklar-preview.json` anpassen
|
||||
3. Website-Inhalt ersetzen (`index.html` oder eigenes Frontend)
|
||||
4. Push auf `main` <20> Webhook deployt automatisch
|
||||
5. Im Admin-Portal (`project.webklar.com`) Kunde dem Projekt zuweisen
|
||||
- **Typ:** `static` (reine HTML/CSS/JS-Seite, kein npm-Build)
|
||||
- **Webroot:** [`www/`](www/) <20> Einstieg `www/index.html`
|
||||
|
||||
## Gitea-Webhook (einmalig pro Org/Repo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user