dev-up.sh: DEV-Container neu bauen und starten, auch als post-commit-Hook

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
irrlicht
2026-09-27 00:10:01 +02:00
co-authored by Claude Opus 5.5
parent 9a7282ed1d
commit 4e0d27c4a6
4 changed files with 78 additions and 0 deletions
+8
View File
@@ -24,6 +24,14 @@ Vite reicht `/api` und `/static` ans Backend durch (`frontend/vite.config.ts`,
(gitignored). Von dort liefert das Go-Backend aus (`frontend.go`), lokal also
auch ohne Vite: `npm run build`, dann `go run .`.
### DEV-Container
`./dev-up.sh` baut das Image aus dem Arbeitsverzeichnis und startet den
Container `kver-dev` auf http://127.0.0.1:8081 neu (DSN aus `dev.env`, Daten
und Medien read-only aus `prod_backup/`). Mit `git config core.hooksPath
githooks` läuft das nach jedem Commit automatisch im Hintergrund (Log:
`.git/dev-up.log`); einmalig aussetzen mit `KVER_NO_DEV_UP=1 git commit …`.
## Aufbau
| Datei | Zweck |