blob: 931e2db5cc45846146793a931120d3167e3e2c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$SCRIPT_DIR"
BUILD_DIR="build-web"
if [ ! -f "$BUILD_DIR/index.html" ]; then
echo "Error: Web build not found. Run 'bin/build-web' first."
exit 1
fi
PORT="${1:-8080}"
echo "Serving study-player at http://localhost:$PORT"
echo "Press Ctrl+C to stop."
python3 -m http.server "$PORT" -d "$BUILD_DIR"
|