Skip to content

Commit

Permalink
✨ update serve command
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Apr 18, 2022
1 parent 7d65b5d commit 8c29283
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$port = $input->getOption('port') ? (int) $input->getOption('port') : 5500;
$process = Process::fromShellCommandline("php -S localhost:$port", null, null, null, null);

// Print welcome message just once
$output->writeln("<info>Leaf development server started: http://localhost:$port</info>");
$output->writeln('<comment>Happy coding!</comment>');
$output->writeln("<info>Starting Leaf development server on <href=http://localhost:$port>http://localhost:$port</></info>");

return $process->run(function ($type, $line) use ($output, $port) {
if (is_string($line) && !strpos($line, 'Failed')) {
Expand Down

0 comments on commit 8c29283

Please sign in to comment.