From 66ee9d55bf19e140e6d926c1900c172cf44f850e Mon Sep 17 00:00:00 2001 From: Armel van Ravels Date: Wed, 28 May 2025 16:23:36 +0200 Subject: [PATCH] Add running instructions to readme and fix Makefile --- Makefile | 12 +++++------- README.md | 2 ++ tests/Feature/HomeControllerTest.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index b142425..080cef0 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,17 @@ -EXEC="docker compose exec php" - up: docker compose up -d start: up composer-install composer-install: - "$(EXEC)" composer install + docker compose exec -T php composer install stop: docker compose stop cmd: - "$(EXEC)" sh + docker compose exec php sh phpstan: - "$(EXEC)" vendor/bin/phpstan analyse src --level 8 + docker compose exec -T php vendor/bin/phpstan analyse src --level 8 cs-fix: - "$(EXEC)" vendor/bin/php-cs-fixer fix --allow-risky=yes + docker compose exec -T php vendor/bin/php-cs-fixer fix --allow-risky=yes test: - "$(EXEC)" vendor/bin/pest \ No newline at end of file + docker compose exec -T php vendor/bin/pest diff --git a/README.md b/README.md index b7d6e92..28b7ecf 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ cp .env.example .env make start ``` +You will now have a webserver running on localhost:443 and localhost:80 + ### How to stop ``` make stop diff --git a/tests/Feature/HomeControllerTest.php b/tests/Feature/HomeControllerTest.php index ca55c1a..7f9c074 100644 --- a/tests/Feature/HomeControllerTest.php +++ b/tests/Feature/HomeControllerTest.php @@ -16,4 +16,4 @@ it('view is rendered', function (): void { $body->rewind(); expect($body->getContents())->toBe('Welkom'); -}); \ No newline at end of file +}); -- 2.49.1