vitallink-BS/vitallink/docker-start.sh

25 lines
627 B
Bash
Executable File

#!/bin/bash
# --- ADD THIS LINE ---
# Add backend and simulator to Python path so imports work
export PYTHONPATH=$PYTHONPATH:/app/backend:/app/simulator
# 1. Start Backend
echo "Starting Backend..."
uvicorn backend.server:app --host 0.0.0.0 --port 8000 &
# 2. Wristband system
echo "Starting Simulator..."
python simulator/main_runner.py &
# 3. Dashboard
echo "Starting Dashboard on 5173..."
cd frontend/dashboard && python -m http.server 5173 --bind 0.0.0.0 -d dist &
# 4. Kiosk
echo "Starting Kiosk on 5174..."
cd /app/frontend/kiosk && python -m http.server 5174 --bind 0.0.0.0 -d dist &
# Keep container running
wait