35 lines
745 B
Batchfile
35 lines
745 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
echo ============================================
|
|
echo AufmaßWeb - Start (Entwicklung)
|
|
echo ============================================
|
|
echo.
|
|
echo [1] Flask Dev-Server (http://localhost:5000)
|
|
echo [2] Waitress Prod-Server (http://localhost:5000)
|
|
echo [3] Docker-Compose (falls installiert)
|
|
echo.
|
|
choice /c 123 /n /m "Auswahl (1/2/3): "
|
|
if errorlevel 3 goto docker
|
|
if errorlevel 2 goto waitress
|
|
if errorlevel 1 goto flask
|
|
|
|
:flask
|
|
echo Starte Flask Dev-Server...
|
|
python run.py
|
|
goto end
|
|
|
|
:waitress
|
|
echo Installiere waitress falls nötig...
|
|
pip install waitress -q
|
|
echo Starte Waitress Prod-Server...
|
|
python wsgi.py
|
|
goto end
|
|
|
|
:docker
|
|
echo Starte mit Docker Compose...
|
|
docker-compose up --build
|
|
goto end
|
|
|
|
:end
|
|
pause
|