diff --git a/scripts/dev.sh b/scripts/dev.sh index 43f3688..1734697 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -17,7 +17,13 @@ fi # Start edit sidecar if requested if [[ "$*" == *"--edit"* ]]; then echo "Starting edit sidecar on :8001..." - (cd "$ROOT" && uvicorn edit.server:app --reload --port 8001) & + UVICORN="$ROOT/.venv/bin/uvicorn" + if [ ! -x "$UVICORN" ]; then + echo "Setting up Python venv..." + python3 -m venv "$ROOT/.venv" + "$ROOT/.venv/bin/pip" install -r "$ROOT/edit/requirements.txt" -q + fi + (cd "$ROOT" && "$UVICORN" edit.server:app --reload --port 8001) & SIDECAR_PID=$! trap "kill $SIDECAR_PID 2>/dev/null" EXIT fi diff --git a/site b/site index 4ebc4c7..5786fd8 160000 --- a/site +++ b/site @@ -1 +1 @@ -Subproject commit 4ebc4c798c681029845385f3f801b3e120c97799 +Subproject commit 5786fd827fef80fc952ff72549a080d15ce3f6da