Initial commit – AufmaßCreater v2.35
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user