Skip to content

Commit

Permalink
Move up option handler
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 8, 2024
1 parent d1199d5 commit 35d1238
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/framework/src/Console/Commands/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 35d1238

Please sign in to comment.