From 160af53b05fb0156a4b8796c3240bb8d6a06f4d1 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Thu, 13 Aug 2026 12:35:40 +0100 Subject: [PATCH] run.sh: prefer project venv (bare python3 lacks uvicorn) --- scripts/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 70da60a..6785ec9 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -12,4 +12,9 @@ set -a set +a PORT="${FUEL_RELAY_PORT:-8788}" + +# Prefer the project venv so the bare `python3` fallback can't miss uvicorn. +if [ -x ".venv/bin/python" ]; then + exec .venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port "$PORT" +fi exec python3 -m uvicorn app.main:app --host 0.0.0.0 --port "$PORT"