Add session auth: FastAPI login/logout/me endpoints, uv-managed deps, fix cookie on JSONResponse
This commit is contained in:
+2
-7
@@ -17,13 +17,8 @@ fi
|
||||
# Start edit sidecar if requested
|
||||
if [[ "$*" == *"--edit"* ]]; then
|
||||
echo "Starting edit sidecar on :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) &
|
||||
uv sync -q
|
||||
uv run uvicorn edit.server:app --reload --port 8001 &
|
||||
SIDECAR_PID=$!
|
||||
trap "kill $SIDECAR_PID 2>/dev/null" EXIT
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user