From 44c5e06996f81c54dda6280808a1a3f93230fbe7 Mon Sep 17 00:00:00 2001 From: lubiana Date: Mon, 2 May 2022 08:38:14 +0200 Subject: [PATCH] disable composer timeout in development helpers chapter --- 04-development-helpers.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/04-development-helpers.md b/04-development-helpers.md index 4469d69..4979ca0 100644 --- a/04-development-helpers.md +++ b/04-development-helpers.md @@ -237,7 +237,10 @@ with lots of parameters by hand all the time, so I added a few lines to my `comp ```json "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", "baseline": "./vendor/bin/phpstan analyze --generate-baseline", "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 -php devserver i can just type "composer serve" and dont have to type in the hostname, port and targetdirectory all 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 time. You could also configure PhpStorm to automatically run these commands in the background and highlight the violations