Files
microdao-daarion/start_sofia.sh
Apple 744c149300
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
Add automated session logging system
- Created logs/ structure (sessions, operations, incidents)
- Added session-start/log/end scripts
- Installed Git hooks for auto-logging commits/pushes
- Added shell integration for zsh
- Created CHANGELOG.md
- Documented today's session (2026-01-10)
2026-01-10 04:53:17 -08:00

32 lines
714 B
Bash
Executable File

#!/bin/bash
# Start Sofia - API + Web Interface
echo "🚀 Starting Sofia System..."
echo ""
# Check if Ollama is running
if ! pgrep -x "ollama" > /dev/null; then
echo "⚠️ Ollama не запущено. Запускаємо..."
ollama serve &
sleep 3
fi
# Start Sofia API (background)
echo "🤖 Starting Sofia API on http://localhost:8899..."
source sofia_venv/bin/activate
python3 sofia_api.py &
API_PID=$!
# Wait for API to start
sleep 2
# Start React dev server
echo "🌐 Starting React dev server on http://localhost:5173..."
echo ""
echo "Sofia буде доступна за адресою: http://localhost:5173/sofia"
echo ""
npm run dev
# Cleanup on exit
trap "kill $API_PID" EXIT