| @echo off | |
| REM Usa el Python del entorno virtual local dentro de backend y arranca uvicorn con recarga en caliente. | |
| if exist .venv\Scripts\python.exe ( | |
| set "PYTHON_EXE=.venv\Scripts\python.exe" | |
| ) else if exist .venv\bin\python.exe ( | |
| set "PYTHON_EXE=.venv\bin\python.exe" | |
| ) else ( | |
| echo No se encontró Python en .venv. Crea el entorno virtual primero. | |
| pause | |
| exit /b 1 | |
| ) | |
| %PYTHON_EXE% -m uvicorn main:app --reload --host 0.0.0.0 --port 8000 | |