31 lines
793 B
Batchfile
31 lines
793 B
Batchfile
@echo off
|
|
echo Suppression du cache Python (mode -B)...
|
|
echo.
|
|
|
|
REM Supprimer tous les fichiers .pyc
|
|
for /d /r "backend\app" %%i in (
|
|
for /d /r "%%i\**\*.pyc" del /s /q
|
|
)
|
|
|
|
REM Supprimer tous les fichiers .pyc dans api
|
|
for /d /r "backend\app\api" %%i in (
|
|
for /d /r "%%i\**\*.pyc" del /s /q
|
|
)
|
|
|
|
REM Supprimer tous les fichiers .pyc dans schemas
|
|
for /d /r "backend\app\schemas" %%i in (
|
|
for /d /r "%%i\**\*.pyc" del /s /q
|
|
)
|
|
|
|
REM Supprimer tous les dossiers __pycache__
|
|
for /d /r "backend\app" %%i in (
|
|
for /d /r "%%i\__pycache__" rd /s /q 2>nul
|
|
if exist "%%i\__pycache__" rd /s /q "%%i\__pycache__"
|
|
)
|
|
|
|
echo Cache nettoye !
|
|
echo.
|
|
echo De7marrage du serveur avec l'option -B (empche les fichiers .pyc)
|
|
echo.
|
|
.venv\Scripts\uvicorn.exe app.main:app --host 127.0.0.1 --port 8000 -B
|