You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11.x] Fix serve command with PHP_CLI_SERVER_WORKERS (#54606)
* Fixes `serve` command with `PHP_CLI_SERVER_WORKERS` By default, serve command would restart child process when there's modification to the `.env` file. However, with `PHP_CLI_SERVER_WORKERS` set to larger than 1 the process doesn't close properly (port is still being used) and this cause the restart process to pick an incremented port number. The changes here will unset `PHP_CLI_SERVER_WORKERS` value unless the command is executed with `--no-reload` option. fixes#54574 Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * Apply fixes from StyleCI * Update src/Illuminate/Foundation/Console/ServeCommand.php * Update src/Illuminate/Foundation/Console/ServeCommand.php * Update ServeCommand.php * Update ServeCommand.php --------- Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> Co-authored-by: StyleCI Bot <bot@styleci.io> Co-authored-by: Taylor Otwell <taylor@laravel.com>
0 commit comments