Compare commits
2 Commits
8af77cc77e
...
e6bc890bd4
| Author | SHA1 | Date | |
|---|---|---|---|
| e6bc890bd4 | |||
|
|
66ee9d55bf |
12
Makefile
12
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
|
||||
docker compose exec -T php vendor/bin/pest
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -16,4 +16,4 @@ it('view is rendered', function (): void {
|
||||
$body->rewind();
|
||||
|
||||
expect($body->getContents())->toBe('Welkom');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user