From 9b726872e6bac1b880fd04b5a94993405d1eba33 Mon Sep 17 00:00:00 2001 From: "nisch.codes" Date: Sun, 27 Jul 2025 20:46:21 +0200 Subject: [PATCH] changed composer to add build on the serve-dev and serve command; also added echo for apache container, to print the url to the local server --- composer.json | 9 ++++----- docker/apache/entrypoint.sh | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index b72adcc..0ed0ae8 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,10 @@ "require": {}, "scripts": { "setup": "php public/index.php run:setup", - "docker-dev-init": "docker-compose build --build-arg INSTALL_XDEBUG=true", - "serve-dev": "docker-compose up -d", + "serve-dev": "docker-compose up -d --build", "stop-serve-dev": "docker-compose down", - "docker-init": "docker-compose build --build-arg INSTALL_XDEBUG=false", - "serve": "docker-compose up -d", - "stop-serve": "docker-compose down" + "serve": "docker-compose up -d --build", + "stop-serve": "docker-compose down", + "open-brower": "open http://localhost:8000" } } diff --git a/docker/apache/entrypoint.sh b/docker/apache/entrypoint.sh index 73d92fd..2cc9601 100755 --- a/docker/apache/entrypoint.sh +++ b/docker/apache/entrypoint.sh @@ -13,5 +13,7 @@ echo 'LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so' >> /usr/local/apac echo '🔧 Aktiviere vhost.conf...' echo 'Include conf/extra/vhost.conf' >> /usr/local/apache2/conf/httpd.conf +echo '🌐 open http://localhost:8000 in your browser' + echo "✅ Starte Apache im Vordergrund..." exec httpd-foreground \ No newline at end of file