24 lines
520 B
Batchfile
24 lines
520 B
Batchfile
@echo off
|
|
rem Production launch: install deps, build frontend if needed, run the server.
|
|
rem Downloaded files go to downloads\ - UI at http://127.0.0.1:8000
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
echo [1/3] uv sync
|
|
call uv sync
|
|
if errorlevel 1 exit /b 1
|
|
|
|
if exist "frontend\build" goto serve
|
|
|
|
echo [2/3] building frontend (frontend\build missing)
|
|
pushd frontend
|
|
call npm install
|
|
if errorlevel 1 exit /b 1
|
|
call npm run build
|
|
if errorlevel 1 exit /b 1
|
|
popd
|
|
|
|
:serve
|
|
echo [3/3] starting PVideoDl at http://127.0.0.1:8000
|
|
uv run pvideodl
|