run.sh: prefer project venv (bare python3 lacks uvicorn)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user