File size: 345 Bytes
3e2e16c
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
# Start FlowTwin. Serves the API and the Race Control dashboard on one port.
set -euo pipefail
cd "$(dirname "$0")/backend"
HOST="${FLOWTWIN_HOST:-127.0.0.1}"
PORT="${FLOWTWIN_PORT:-8000}"
echo "FlowTwin — Race Control"
echo "  http://${HOST}:${PORT}"
exec python -m uvicorn flowtwin.main:app --host "$HOST" --port "$PORT"