File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ' ));
You can’t perform that action at this time.
0 commit comments