Spaces:
Running
Running
set -eu | |
# expand PORT in the shell (default 7860), then pass a pure number to uvicorn | |
PORT="${PORT:-7860}" | |
cd /app | |
echo "Starting Uvicorn on 0.0.0.0:${PORT}" | |
exec uvicorn app.main:app --host 0.0.0.0 --port "$PORT" | |