diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index 2b83aea0641..f74c7560928 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -58,16 +58,16 @@ public function safeHandle(): int $this->openInBrowser((string) $this->option('open')); } + if ($this->option('vite')) { + $this->runViteProcess(); + } + $command = sprintf('php -S %s:%d %s', $this->getHostSelection(), $this->getPortSelection(), $this->getExecutablePath() ); - if ($this->option('vite')) { - $this->runViteProcess(); - } - $this->runServerProcess($command); $this->handleRunningProcesses();