new file: app.py new file: config.example.json new file: config.json new file: docker_diagnose.py new file: requirements.txt new file: start.bat new file: templates/available_projects.html new file: templates/base.html new file: templates/config.html new file: templates/docker_status.html new file: templates/index.html new file: templates/project_details.html new file: templates/project_details_fixed.html new file: templates/project_details_new.html new file: templates/project_details_old.html .gitignore
68 lines
1.6 KiB
Batchfile
68 lines
1.6 KiB
Batchfile
@echo off
|
|
echo App Installer & Manager wird gestartet...
|
|
echo.
|
|
|
|
REM Prüfe Python Installation
|
|
python --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo FEHLER: Python ist nicht installiert oder nicht im PATH.
|
|
echo Bitte installieren Sie Python von https://python.org
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Prüfe Docker Installation
|
|
docker --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo WARNUNG: Docker ist nicht verfügbar.
|
|
echo Docker wird für die Container-Verwaltung benötigt.
|
|
echo Bitte installieren Sie Docker Desktop.
|
|
echo.
|
|
)
|
|
|
|
REM Prüfe Git Installation
|
|
git --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo FEHLER: Git ist nicht installiert.
|
|
echo Bitte installieren Sie Git von https://git-scm.com
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Installiere Dependencies falls requirements.txt existiert
|
|
if exist requirements.txt (
|
|
echo Installiere Python-Dependencies...
|
|
pip install -r requirements.txt
|
|
if errorlevel 1 (
|
|
echo FEHLER: Dependencies konnten nicht installiert werden.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
REM Erstelle Verzeichnisse
|
|
if not exist "projects" mkdir projects
|
|
if not exist "apps" mkdir apps
|
|
|
|
REM Kopiere Beispielkonfiguration falls keine existiert
|
|
if not exist "config.json" (
|
|
if exist "config.example.json" (
|
|
echo Erstelle initiale Konfiguration...
|
|
copy config.example.json config.json
|
|
)
|
|
)
|
|
|
|
echo.
|
|
echo ======================================
|
|
echo App Installer & Manager
|
|
echo ======================================
|
|
echo.
|
|
echo Server startet auf: http://localhost:5000
|
|
echo Drücken Sie Ctrl+C zum Beenden
|
|
echo.
|
|
|
|
REM Starte Flask-Anwendung
|
|
python app.py
|
|
|
|
pause
|