feat: make stop/start/restart + Doku servicefreundlicher
Makefile: neue Targets 'stop' (Gateway + llama.cpp), 'start' (llm-up + run), 'restart' (stop + start). CONTAINER_NAME als überschreibbare Variable. BEDIENUNGSANLEITUNG § 4: neuer Schnellbefehle-Block (§ 4.0) mit Tabellen für alle Start-/Stop-Situationen; § 4.8 Stoppen und § 4.9 Neustart als dedizierte Abschnitte. README: Stoppen, Neu starten und make-Targets aktualisiert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
11ae66f5ae
commit
a54daecbc8
3 changed files with 141 additions and 2 deletions
24
Makefile
24
Makefile
|
|
@ -6,7 +6,9 @@ endif
|
|||
PORT ?= 8080
|
||||
HOST ?= 0.0.0.0
|
||||
|
||||
.PHONY: ensure-env install run test smoke docker-build llm-up llm-down llm-status
|
||||
CONTAINER_NAME ?= va_llm
|
||||
|
||||
.PHONY: ensure-env install run start stop restart test smoke docker-build llm-up llm-down llm-status
|
||||
|
||||
ensure-env:
|
||||
@if [ ! -f .env ] && [ -f .env.example ]; then \
|
||||
|
|
@ -31,6 +33,26 @@ smoke: ensure-env
|
|||
docker-build:
|
||||
docker build -t voice-assistant-gateway .
|
||||
|
||||
# --- Komplett-Befehle (Start / Stop / Restart) --------------------------------
|
||||
|
||||
# Stoppt alle Voice-Assistant-Komponenten: Gateway (Vordergrund + systemd) und
|
||||
# llama.cpp-Container. Ollama (systemd) separat: sudo systemctl stop ollama
|
||||
stop:
|
||||
-pkill -f "uvicorn app.main:app" 2>/dev/null; true
|
||||
-systemctl --user stop voice-assistant 2>/dev/null; true
|
||||
-docker rm -f "$(CONTAINER_NAME)" 2>/dev/null; true
|
||||
@echo "[*] Voice-Assistant gestoppt (Gateway + llama.cpp)."
|
||||
|
||||
# Startet llama.cpp-LLM-Server und danach das Gateway (Profil hybrid/local-dev).
|
||||
# Fuer Profil cloud (kein lokales LLM): einfach 'make run'.
|
||||
start: ensure-env
|
||||
$(MAKE) llm-up
|
||||
$(MAKE) run
|
||||
|
||||
# Faehrt alles herunter und startet neu (llama.cpp + Gateway).
|
||||
restart: stop
|
||||
$(MAKE) start
|
||||
|
||||
# --- Lokales LLM (llama.cpp-Server, zentrale unzensierte KI) -----------------
|
||||
# Konfig per ENV ueberschreibbar, z. B.: GPU_DEVICE=2 HOST_PORT=8101 make llm-up
|
||||
llm-up:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue