Files

21 lines
515 B
Bash
Executable File

#!/bin/bash
# FuelBoard Relay launcher
set -euo pipefail
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then
echo "⚠ No .env found — running in DEMO mode (no credentials)."
fi
set -a
[ -f .env ] && source .env
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"