Spaces:
Paused
Paused
File size: 325 Bytes
528c6f5 | 1 2 3 4 5 6 7 8 9 10 11 | #!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
PORT="${PORT:-8765}"
if [[ ! -d .venv ]]; then
python3 -m venv .venv
.venv/bin/pip install -r backend/requirements.txt
fi
exec .venv/bin/uvicorn main:app --app-dir "$ROOT/backend" --host 127.0.0.1 --port "$PORT" --reload
|