Bat Dateien verbessert
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
@echo off
|
|
||||||
cd /d "C:\Users\HP\source\repos\skyview.astronomiemuseum.de"
|
|
||||||
echo Starte PHP-Entwicklungsserver auf http://127.0.0.1:8000/
|
|
||||||
echo Beenden mit Ctrl+C
|
|
||||||
"E:\php\php.exe" -S 127.0.0.1:8000 -t .
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
@echo off
|
|
||||||
cd /d "C:\Users\ich\source\repos\skyview.astronomiemuseum.de"
|
|
||||||
echo Starte PHP-Entwicklungsserver auf http://127.0.0.1:8000/
|
|
||||||
echo Beenden mit Ctrl+C
|
|
||||||
"C:\laragon\bin\php\php-8.4.5-nts-Win32-vs17-x64\php.exe" -S 127.0.0.1:8000 -t .
|
|
||||||
@@ -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 .
|
||||||
Reference in New Issue
Block a user