Spaces:
Sleeping
Sleeping
Download scripts/run_backend.sh from alexp97/agrovision: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/spaces/alexp97/agrovision/resolve/main/scripts/run_backend.sh
- Command line
-
hf download hf://spaces/alexp97/agrovision/scripts/run_backend.sh
-
curl -L -o run_backend.sh https://huggingface.co/spaces/alexp97/agrovision/resolve/main/scripts/run_backend.sh
812 Bytes
| # Levanta el backend FastAPI del MVP en local (sin Docker), en http://127.0.0.1:8000 | |
| set -euo pipefail | |
| root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| cd "$root" | |
| if ! command -v uv >/dev/null 2>&1; then | |
| echo "ERROR: 'uv' no está instalado o no está en PATH." >&2 | |
| exit 1 | |
| fi | |
| export UV_LINK_MODE="${UV_LINK_MODE:-copy}" | |
| export PYTHONUNBUFFERED=1 | |
| uv sync | |
| uv run python -u -m uvicorn backend.main:app \ | |
| --host 127.0.0.1 \ | |
| --port 8000 \ | |
| --reload \ | |
| --log-level info \ | |
| --reload-exclude ".venv" \ | |
| --reload-exclude "frontend" \ | |
| --reload-exclude "docs" \ | |
| --reload-exclude "tests" \ | |
| --reload-exclude "scripts" \ | |
| --reload-exclude "supabase" \ | |
| --reload-exclude "models" \ | |
| --reload-exclude "sample_data" \ | |
| --reload-exclude "scratch" | |