SHA256
Vorbereitung mit install.sh
This commit is contained in:
+11
-7
@@ -13,9 +13,12 @@ JavaScript-Framework.
|
||||
```bash
|
||||
git clone <repo> build_webstatic
|
||||
cd build_webstatic
|
||||
./install.sh # installiert nach /opt/GitCover/webstatic
|
||||
./install.sh # klont nach /opt/GitCover/webstatic (Default: Clone-Modus)
|
||||
```
|
||||
Nach der Installation ist `webstatic` im PATH verfügbar.
|
||||
Der Clone-Modus legt ein echtes Git-Repo in `/opt/GitCover/webstatic` an, sodass
|
||||
spätere Updates via `git pull` (mit `git stash`/`git stash pop` für lokale
|
||||
Anpassungen) möglich sind. Alternativ `WEBSTATIC_INSTALL_MODE=copy ./install.sh`
|
||||
für eine reine Binary-Kopie. Nach der Installation ist `webstatic` im PATH verfügbar.
|
||||
|
||||
## 3. Neue Website anlegen
|
||||
```bash
|
||||
@@ -49,19 +52,20 @@ Ihr Inhalt …
|
||||
```
|
||||
|
||||
- `order` steuert die Reihenfolge in Navigation und Sidebar.
|
||||
- `order: 0` = Banner, der auf der Startseite (order 1) eingebettet wird.
|
||||
- Sprachvarianten: `02-start.en.md`, `02-start.vi.md` (Fallback auf Basisdatei).
|
||||
- `order: 0` = Banner (eigene Seite, getrennt vom Hero/`order: 1`).
|
||||
- Sprachvarianten: `02-start.de.md` (Default), `02-start.en.md`, `02-start.vi.md`
|
||||
(fehlende Sprache fällt auf `.de.md` zurück).
|
||||
|
||||
## 5. Bauen & Vorschau
|
||||
```bash
|
||||
webstatic build --env work # localhost:8000
|
||||
webstatic serve --port 8000 # lokaler Server (Strg+C beendet)
|
||||
webstatic build --env development # localhost:8000
|
||||
webstatic serve --port 8000 # lokaler Server (Strg+C beendet)
|
||||
```
|
||||
|
||||
## 6. Veröffentlichen
|
||||
| Ziel | Befehl |
|
||||
|------|--------|
|
||||
| Review | `webstatic build --env review` |
|
||||
| Development (lokal, work/preview/review) | `webstatic build --env development` |
|
||||
| Staging | `webstatic build --env staging` |
|
||||
| Production | `webstatic build --env deploy` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user