add script for compose and serve

This commit is contained in:
2026-07-13 18:47:53 +02:00
parent 73eb3f92d0
commit f35ea865a2
3 changed files with 33 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
@echo off
SETLOCAL EnableDelayedExpansion
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
cd /D "%~dp0"
docker run --rm -v %~dp0:/app -w /app composer:latest dump-autoload -o
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL
+11
View File
@@ -0,0 +1,11 @@
@echo off
SETLOCAL EnableDelayedExpansion
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
cd /D "%~dp0"
docker run --rm -v %~dp0:/app -w /app composer:latest install -o
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL
+11
View File
@@ -0,0 +1,11 @@
@echo off
SETLOCAL EnableDelayedExpansion
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
cd /D "%~dp0"
docker run --rm -p 8000:8000 -v %~dp0:/app -w /app --name php-serve php:8.5.8-cli php -S 0.0.0.0:8000 -t public public/index.php
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL