Skip to content

Commit ca1dff4

Browse files
committed
fix: patch up serve command
1 parent 112f2dc commit ca1dff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/ServeCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ServeCommand extends Command
1010
{--p|port=5500 : Port to run Leaf app on}
1111
{--t|path? : Path to your app}
1212
{--s|host=localhost : Your application host}
13-
{--c|no-concurrent? : Run PHP server without Vite server}
13+
{--c|clean? : Run PHP server without Vite server}
1414
{--w|no-env-watch? : Run PHP server without automatic .env file watching}';
1515
protected $description = 'Start the leaf development server';
1616
protected $help = 'Run your Leaf app on PHP\'s local development server';
@@ -30,7 +30,7 @@ protected function handle()
3030
$this->path = $this->option('path') ?? getcwd() . DIRECTORY_SEPARATOR . 'public';
3131
$this->host = $this->option('host');
3232

33-
$noConcurrent = $this->option('no-concurrent');
33+
$noConcurrent = $this->option('clean');
3434

3535
if ($noConcurrent || (!$redisDetected && !$jobsDetected && !$viteDetected)) {
3636
$useConcurrent = false;
@@ -213,7 +213,7 @@ protected function buildWatcherCommand()
213213
return "npx @leafphp/watcher --watch .env --exec " . escapeshellarg($phpCommand);
214214
}
215215

216-
return "\"npx @leafphp/watcher --watch .env --exec \\\"$phpCommand\\\"\"";
216+
return "npx @leafphp/watcher --watch .env --exec \"$phpCommand\"";
217217
}
218218

219219
/**

0 commit comments

Comments
 (0)