Bat Dateien verbessert

This commit is contained in:
2026-05-31 10:26:30 +02:00
parent f14f31712a
commit 0e2df02c53
3 changed files with 20 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
@echo off
setlocal
set "REPO_DIR=%~dp0.."
set "SERVER_URL=http://127.0.0.1:8000/"
cd /d "%REPO_DIR%"
where php >nul 2>nul
if errorlevel 1 (
echo PHP wurde nicht im PATH gefunden.
echo Bitte PHP zum PATH hinzufuegen und erneut versuchen.
exit /b 1
)
echo Starte PHP-Entwicklungsserver auf %SERVER_URL%
echo Beenden mit Ctrl+C
start "" "%SERVER_URL%"
php -S 127.0.0.1:8000 -t .