Last active
September 20, 2022 07:15
Revisions
-
pstaender revised this gist
Sep 18, 2022 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,13 +12,12 @@ Just start now the server with: $ vendor/bin/serve ``` ## Nice to have: A server composer command To start the server with `composer server`, add to your `composer.json`: ```json { "scripts": { "server": [ "Composer\\Config::disableProcessTimeout", -
pstaender created this gist
Sep 18, 2022 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ # Using the PHP built-in-server with SilverStripe v4+ In your SilverStripe project (the [original module can be found here](https://github.com/silverstripe/silverstripe-serve/)): ```sh $ composer require pstaender/silverstripe-serve ``` Just start now the server with: ```sh $ vendor/bin/serve ``` ## Nice to have: composer command To start the server with `composer server`, add to your `composer.json`: ```json { …, "scripts": { "server": [ "Composer\\Config::disableProcessTimeout", "@php serve" ] }, } ``` ## XDebug You have to add those lines to your `php.ini` (check with `phpinfo()` the correct path of php.ini the built-in-server relies on): ``` xdebug.mode=debug xdebug.start_with_request=yes xdebug.discover_client_host=1 ```