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 <[email protected]>
* wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* 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 <[email protected]>
Co-authored-by: StyleCI Bot <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
0 commit comments