From 35d12384cf6de4d36098c8446d810d5788bbf339 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 8 Dec 2024 20:02:08 +0100 Subject: [PATCH] Move up option handler --- packages/framework/src/Console/Commands/ServeCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();