-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Env modification increments server port #54574
Labels
Comments
Same faced by me. |
Can you share the output of following command:
|
on latest |
Same for me. |
Can you try changing the following -PHP_CLI_SERVER_WORKERS=4
+PHP_CLI_SERVER_WORKERS=1 |
Seems to be working now (with a message |
crynobone
added a commit
that referenced
this issue
Feb 14, 2025
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As seen recenlty in that old issue :
#34121 (comment)
Originally posted by @gavalierm in #34121
I am also encoutering that with that config:
Any ideas of what's going on? How could I help debug that issue?
The text was updated successfully, but these errors were encountered: