Skip to content

Commit

Permalink
[server] Add http to url. (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Apr 9, 2017
1 parent e01dc88 commit c621277
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/ServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$io = new DrupalStyle($input, $output);
$learning = $input->hasOption('learning')?$input->getOption('learning'):false;
$address = $this->validatePort($input->getArgument('address'));

$finder = new PhpExecutableFinder();
Expand All @@ -90,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$io->commentBlock(
sprintf(
$this->trans('commands.server.messages.listening'),
$address
'http://'.$address
)
);

Expand All @@ -99,7 +98,10 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$process->isSuccessful()) {
$io->error($process->getErrorOutput());
return 1;
}

return 0;
}

/**
Expand Down

0 comments on commit c621277

Please sign in to comment.