Add development and production scripts for PVideoDl. Introduced dev.bat, dev.sh for development mode with backend and Vite server, and run.bat, run.sh for production launch with dependency installation and frontend build. Enhanced user experience with clear instructions and error handling.

This commit is contained in:
Leonid Pershin
2026-06-19 16:27:14 +03:00
parent 3281fa2a5d
commit 303de2b26c
4 changed files with 77 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
@echo off
rem Прод-запуск одной командой: зависимости -> сборка фронта (если нужна) -> сервер.
rem Файлы складываются в downloads\, UI на http://127.0.0.1:8000
chcp 65001 >nul
setlocal
cd /d "%~dp0"
echo ==^> uv sync
call uv sync || exit /b 1
if not exist "frontend\build" (
echo ==^> Сборка фронтенда ^(frontend\build отсутствует^)
pushd frontend
call npm install || exit /b 1
call npm run build || exit /b 1
popd
) else (
echo ==^> Фронтенд уже собран — пропускаю сборку ^(удалите frontend\build для пересборки^)
)
echo ==^> Запуск PVideoDl на http://127.0.0.1:8000
uv run pvideodl