disable composer timeout in development helpers chapter

This commit is contained in:
lubiana 2022-05-02 08:38:14 +02:00 committed by Andre Lubian
parent e4fa8b8e42
commit 44c5e06996

View file

@ -237,7 +237,10 @@ with lots of parameters by hand all the time, so I added a few lines to my `comp
```json ```json
"scripts": { "scripts": {
"serve": "php -S 0.0.0.0:1235 -t public", "serve": [
"Composer\\Config::disableProcessTimeout",
"php -S 0.0.0.0:1235 -t public"
],
"phpstan": "./vendor/bin/phpstan analyze", "phpstan": "./vendor/bin/phpstan analyze",
"baseline": "./vendor/bin/phpstan analyze --generate-baseline", "baseline": "./vendor/bin/phpstan analyze --generate-baseline",
"check": "./vendor/bin/phpcs", "check": "./vendor/bin/phpcs",
@ -245,8 +248,8 @@ with lots of parameters by hand all the time, so I added a few lines to my `comp
}, },
``` ```
that way i can just type "composer" followed by the command name in the root of my project. if i want to start the that way I can just type "composer" followed by the command name in the root of my project. if i want to start the
php devserver i can just type "composer serve" and dont have to type in the hostname, port and targetdirectory all the php devserver I can just type "composer serve" and dont have to type in the hostname, port and targetdirectory all the
time. time.
You could also configure PhpStorm to automatically run these commands in the background and highlight the violations You could also configure PhpStorm to automatically run these commands in the background and highlight the violations