Skripte nach bin/ und lib/ umstrukturiert + WSL-Log-Analyse Alle .bat-Skripte liegen jetzt in bin/, alle .py in lib/, .env(.example) in bin/. setenv.bat setzt IWZ_* (inkl. IWZ_ENV) und PYTHONPATH; die Launcher rufen setenv, aktivieren die .venv falls vorhanden und starten das zugehoerige lib/-Skript. Die Python-Skripte lesen die .env ueber IWZ_ENV (Fallback bin/.env). Neu: Nutzungsanalyse per GoAccess (analyze.py/.bat) - laedt die IONOS-Access-Logs per SFTP (paramiko) und erzeugt einen HTML-Report. GoAccess laeuft ueber WSL (GOACCESS_MODE=wsl, Pfad-Uebersetzung nach /mnt/c). install_py.bat prueft WSL+GoAccess und zeigt sonst den Installationsweg. Doku in doc/analyse.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> @
30 lines
841 B
Batchfile
30 lines
841 B
Batchfile
@echo off
|
|
REM ================================================================
|
|
REM IWZ Ferienwohnungen - Deploy (Vollupload nach Bunny.net)
|
|
REM ================================================================
|
|
setlocal
|
|
|
|
REM Umgebung setzen (IWZ, IWZ_LIB, IWZ_ENV, PYTHONPATH ...)
|
|
call "%~dp0setenv.bat" >nul
|
|
|
|
REM Virtuelle Umgebung nutzen, falls vorhanden (paramiko etc. liegen dort)
|
|
if exist "%IWZ%\.venv\Scripts\activate.bat" (
|
|
call "%IWZ%\.venv\Scripts\activate.bat"
|
|
)
|
|
|
|
REM Python-Interpreter bestimmen (py-Launcher bevorzugt, sonst python)
|
|
set "PY=py"
|
|
py --version >nul 2>&1 || set "PY=python"
|
|
|
|
echo.
|
|
echo === IWZ Ferienwohnungen - Deploy ===
|
|
echo.
|
|
|
|
REM Aus dem Projekt-Root heraus bauen (hugo + public liegen dort)
|
|
cd /d "%IWZ%"
|
|
"%PY%" "%IWZ_LIB%\deploy.py" %*
|
|
set "RC=%ERRORLEVEL%"
|
|
|
|
if not "%RC%"=="0" pause
|
|
endlocal & exit /b %RC%
|