Add scripts/hermes-wiki-serve.sh wrapper + README update
Wiki-Serve-Skript war bisher in ~/.local/bin/, jetzt auch im Repo versioniert, damit Updates via git pull verfügbar sind. CHANGELOG korrigiert: server.py jetzt +12 Zeilen statt +7 (Bug-Fix für trailing '/' ist mit drin).
This commit is contained in:
@@ -49,6 +49,25 @@ tailscale serve --bg --https=443 http://127.0.0.1:8765
|
||||
# Access via https://<hostname>.<tailnet>.ts.net/
|
||||
```
|
||||
|
||||
### One-command setup via wrapper script
|
||||
|
||||
The `scripts/hermes-wiki-serve.sh` wrapper handles start/stop/logs/status, PID-tracking, log-files, and Tailscale integration:
|
||||
|
||||
```bash
|
||||
# Install: copy script to PATH
|
||||
cp scripts/hermes-wiki-serve.sh ~/.local/bin/
|
||||
chmod +x ~/.local/bin/hermes-wiki-serve.sh
|
||||
|
||||
# Use:
|
||||
hermes-wiki-serve.sh start # starts server, sets up tailscale serve
|
||||
hermes-wiki-serve.sh status # shows PID, Tailscale-URL, health
|
||||
hermes-wiki-serve.sh logs # tail all logs
|
||||
hermes-wiki-serve.sh stop # stops server (keeps tailscale running)
|
||||
hermes-wiki-serve.sh restart # stop + start
|
||||
```
|
||||
|
||||
The script defaults to using this repo at `~/repos/hermes-wiki-viewer/`. Override via `HERMES_WIKI_OWV_DIR`.
|
||||
|
||||
## Customization
|
||||
|
||||
`vault-custom.js` is Lukas' own code, organized into clear sections:
|
||||
|
||||
Reference in New Issue
Block a user