✨ Add automated session logging system
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
- 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)
This commit is contained in:
31
start_sofia.sh
Executable file
31
start_sofia.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user