Skip to content

Commit

Permalink
update some, add new dir
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 23, 2021
1 parent e4774d1 commit e39975c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/Console/Controller/PhpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,22 @@ public function serveCommand(Input $input, Output $output): void
$phpBin = $input->getStringOpt('php-bin', $conf['php-bin']);
$docRoot = $input->getSameStringOpt('t,doc-root', $conf['root']);

$entryFile = $input->getStringArg('file');
$entryFile = $input->getStringArg('file', $conf['entry']);
$serveAddr = $input->getSameStringOpt('s,S,addr', $conf['addr']);

$pds = PhpDevServe::new($serveAddr, $docRoot, $entryFile);
$pds->setPhpBin($phpBin);

if ($hceEnv && $hceFile) {
$pds->loadHceFile($hceFile);
$pds->useHceEnv($hceEnv);
$loaded = $pds->loadHceFile($hceFile);
if ($loaded) {
$pds->useHceEnv($hceEnv);
}
}

if ($input->getBoolOpt('show-info')) {
$output->aList($pds->getInfo(), 'Listen Information', ['ucFirst' => false]);
return;
}

$pds->listen();
Expand Down
Empty file added plugin/local/.keep
Empty file.
7 changes: 7 additions & 0 deletions resource/Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## v1.1.4

- [x] update readme
- [x] support set env on run git commands
- [x] `php serve` command support idea `http-client.env.json`

0 comments on commit e39975c

Please sign in to comment.