Skip to content

Commit ebcb746

Browse files
authored
Add warning when server workers cannot be respected (#57482)
1 parent 8e2c5ca commit ebcb746

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ protected function initialize(InputInterface $input, OutputInterface $output)
104104
if ($workers > 1 &&
105105
! $this->option('no-reload') &&
106106
! (int) env('LARAVEL_SAIL', 0)) {
107+
$this->components->warn('Unable to respect the `PHP_CLI_SERVER_WORKERS` environment variable without the `--no-reload` flag. Only creating a single server.');
108+
107109
return false;
108110
}
109111

0 commit comments

Comments
 (0)