run.sh: prefer project venv (bare python3 lacks uvicorn)

This commit is contained in:
FuelBoard Contributor
2026-08-13 12:35:40 +01:00
parent 34fc04ef59
commit 160af53b05
+5
View File
@@ -12,4 +12,9 @@ set -a
set +a set +a
PORT="${FUEL_RELAY_PORT:-8788}" 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" exec python3 -m uvicorn app.main:app --host 0.0.0.0 --port "$PORT"