diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index f74c7560928..ac967da8d9f 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -62,13 +62,11 @@ public function safeHandle(): int $this->runViteProcess(); } - $command = sprintf('php -S %s:%d %s', + $this->runServerProcess(sprintf('php -S %s:%d %s', $this->getHostSelection(), $this->getPortSelection(), $this->getExecutablePath() - ); - - $this->runServerProcess($command); + )); $this->handleRunningProcesses();