-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
Laravel Version
11.45+
PHP Version
8.3
Database Driver & Version
No response
Description
I've noticed that, after updating to laravel/framework 11.45.1, the environment variable PHP_CLI_SERVER_WORKERS
isn't working as expected when using laravel/sail. The issue is still present in version 12+.
The variable worked correctly while I used version 11.34.2, I think this is caused by commit f03d3a1 inside the initialize
method.
I'll create a PR #56923 to check if LARAVEL_SAIL
variable is set to true inside that method, if that's ok.
Steps To Reproduce
I've created a repository to reproduce the issue: https://github.com/akyrey/sail-cli-server-workers
- Start the container
./vendor/bin/sail up -d
- Connect to shell
./vendor/bin/sail shell
- Execute a curl request to an endpoint that retrieves data from another internal endpoint, requiring multiple workers to be running
curl http://localhost
- An html with an error is returned stating timeout on curl request
Metadata
Metadata
Assignees
Labels
No labels