bulid 63
This commit is contained in:
21
START.bat
Normal file
21
START.bat
Normal file
@@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
if not exist ".venv\Scripts\python.exe" (
|
||||
py -m venv .venv
|
||||
)
|
||||
call .venv\Scripts\activate.bat
|
||||
python -m pip install -r requirements.txt
|
||||
if errorlevel 1 goto :error
|
||||
|
||||
python check_remote_database.py
|
||||
if errorlevel 1 goto :error
|
||||
|
||||
python -m uvicorn app:app --host 0.0.0.0 --port 8000
|
||||
if errorlevel 1 goto :error
|
||||
goto :eof
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo Запуск остановлен из-за ошибки. Проверьте сообщения выше.
|
||||
pause
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user