-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_native.sh
More file actions
53 lines (43 loc) · 1.37 KB
/
start_native.sh
File metadata and controls
53 lines (43 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# SME Native Startup Script
# Run the full stack natively (no Docker, no sidecar)
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "=========================================="
echo " SME v3.0.1 - Native Startup (No Sidecar)"
echo "=========================================="
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Check for .env file
if [ ! -f ".env" ]; then
echo -e "${YELLOW}Warning: .env file not found. Copy from .env.example${NC}"
fi
# Create data directory if it doesn't exist
mkdir -p data
echo -e "${GREEN}[1/2] Starting SME Operator (port 8000)...${NC}"
python -m src.api.main &
OPERATOR_PID=$!
echo -e "${GREEN}[2/2] Starting Frontend (port 5173)...${NC}"
cd frontend && npm run dev &
FRONTEND_PID=$!
echo ""
echo "=========================================="
echo " All services started!"
echo "=========================================="
echo ""
echo " Operator: http://localhost:8000"
echo " Frontend: http://localhost:5173"
echo " API Docs: http://localhost:8000/api/docs"
echo ""
echo " Note: AI provider runs inside operator (no sidecar)"
echo ""
echo " PIDs: Operator=$OPERATOR_PID Frontend=$FRONTEND_PID"
echo ""
echo " Press Ctrl+C to stop all services"
echo "=========================================="
# Wait for any process to exit
wait