Skip to content

Commit c189edd

Browse files
committed
fix: patch up deps not installing on mvc
1 parent 31a45d7 commit c189edd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ServeCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ class ServeCommand extends Command
1717

1818
protected function handle(): int
1919
{
20-
if ($this->isMVCApp()) {
21-
return (int) sprout()->run("php leaf serve --port={$this->option('port')} --ansi", null);
22-
}
23-
2420
if (!sprout()->composer()->json()) {
2521
$this->writeln('<error>No composer.json found in the current directory.</error>');
2622
return 1;
@@ -35,6 +31,10 @@ protected function handle(): int
3531
}
3632
}
3733

34+
if ($this->isMVCApp()) {
35+
return (int) sprout()->run("php leaf serve --port={$this->option('port')} --ansi", null);
36+
}
37+
3838
$port = $this->option('port');
3939
$isDockerProject = file_exists(getcwd() . '/docker-compose.yml');
4040
$useConcurrent = !$this->option('no-concurrent') && (file_exists(getcwd() . '/vite.config.js') && file_exists(getcwd() . '/package.json'));

0 commit comments

Comments
 (0)