Загрузить файлы в «/»

This commit is contained in:
2026-07-02 14:24:30 +00:00
commit 603977ff2f
3 changed files with 17 additions and 0 deletions

15
start.sh Normal file
View File

@@ -0,0 +1,15 @@
set -e
cd "$(dirname "$0")"
if [ ! -d "venv" ]; then
echo "Создаём виртуальное окружение..."
python3 -m venv venv
fi
source venv/bin/activate
echo "Устанавливаем зависимости..."
pip install --quiet --upgrade pip
pip install --quiet -r requirements.txt
echo ""
echo "Приложение запущено: http://localhost:8000"
echo "Остановить — Ctrl+C"
echo ""
uvicorn app.main:app --host 0.0.0.0 --port 8000