Files
natiris/natiris_start.sh

44 lines
1.4 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# natiris_start.sh Manueller Start des Natiris Companion
# Nutzt Ollama, ComfyBridge (simuliert), SignalBridge (simuliert), API + WebUI
set -e
cd ~/natiris
echo "========================================"
echo " Natiris Companion v4.x Start"
echo "========================================"
echo ""
# Core-Orchestrator ausführen
echo "[1/5] Core-Engine initialisieren..."
python3 core/OrchestratorAll.py > /dev/null || { echo "❌ Core-Engine fehlgeschlagen"; exit 1; }
echo ""
echo "[2/5] Expressions vorbereiten..."
python3 core/ExpressionEngine.py > /dev/null || { echo "❌ ExpressionEngine fehlgeschlagen"; exit 1; }
echo ""
echo "[3/5] Ollama-Bridge kontaktieren..."
python3 bridges/OllamaBridge.py > /dev/null || { echo "❌ OllamaBridge fehlgeschlagen"; exit 1; }
echo ""
echo "[4/5] API-Server starten..."
python3 "runtime/Web chat API (FastAPI)/app.py" > /tmp/natiris_api.log 2>&1 &
sleep 3
if curl -s http://localhost:8000/api/v1/health > /dev/null 2>&1; then
echo "✅ API läuft auf http://localhost:8000"
else
echo "❌ API-Fehler (s. /tmp/natiris_api.log)"
fi
echo ""
echo "[5/5] TUI bereit (manuell starten mit ./natiris_tui.sh)"
echo ""
echo "========================================"
echo " Natiris läuft WebUI auf:"
echo " http://localhost:8000"
echo " http://localhost:8000/webui"
echo "========================================"