[12.x] Add warning when server workers cannot be respected#57482
Conversation
|
Thanks for submitting a PR! Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
|
I've just seen that https://github.com/laravel/laravel/blob/56c833e61f7897950ea4078fcdbd95cc12eb82f8/.env.example#L14 That means running Any thoughts on how we can improve this situation? Maybe if we made it a little less in your face? Kinda weird that we set this default but then it can't be used unless you know this workaround. |
|
Hmm, yeah - not sure I have any great ideas there other than moving default away from 4. 😕 |
|
Thought about this some more and I think we can make this a good experience. For new projects, we currently set the default to A new application runs So in reality the default is I propose we keep the See: laravel/laravel#6693 The only bummer is that it will start appearing for existing applications running those commands. It seems, for some reason, that this restriction doesn't apply to Sail, so I'd propose we add Reckon that could do it? |
|
Yeah that seems fine 👍 |
When using
php artisan servewithPHP_CLI_SERVER_WORKERS, the--no-reloadflag must also be provided, otherwise the value is ignored (#54606).Right now, there is no indicator to the user that the environment variable is being ignored and is a tough one to track down without doing some source diving.
We now output a warning to help you get back on track.
Without the flag
With the flag