Output logs from serve in verbose mode #171
This commit is contained in:
parent
98acc7323f
commit
f62b2bec96
@ -37,6 +37,7 @@ class Serve extends DauxCommand
|
|||||||
|
|
||||||
chdir(__DIR__ . '/../../');
|
chdir(__DIR__ . '/../../');
|
||||||
|
|
||||||
|
putenv('DAUX_VERBOSITY=' . $output->getVerbosity());
|
||||||
putenv('DAUX_SOURCE=' . $daux->getParams()->getDocumentationDirectory());
|
putenv('DAUX_SOURCE=' . $daux->getParams()->getDocumentationDirectory());
|
||||||
putenv('DAUX_THEME=' . $daux->getParams()->getThemesPath());
|
putenv('DAUX_THEME=' . $daux->getParams()->getThemesPath());
|
||||||
putenv('DAUX_CONFIGURATION=' . $daux->getParams()->getConfigurationOverrideFile());
|
putenv('DAUX_CONFIGURATION=' . $daux->getParams()->getConfigurationOverrideFile());
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php namespace Todaymade\Daux\Server;
|
<?php namespace Todaymade\Daux\Server;
|
||||||
|
|
||||||
use Symfony\Component\Console\Output\NullOutput;
|
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
@ -31,7 +31,8 @@ class Server
|
|||||||
*/
|
*/
|
||||||
public static function serve()
|
public static function serve()
|
||||||
{
|
{
|
||||||
$output = new NullOutput();
|
$verbosity = getenv('DAUX_VERBOSITY');
|
||||||
|
$output = new ConsoleOutput($verbosity);
|
||||||
|
|
||||||
$daux = new Daux(Daux::LIVE_MODE, $output);
|
$daux = new Daux(Daux::LIVE_MODE, $output);
|
||||||
$daux->initializeConfiguration();
|
$daux->initializeConfiguration();
|
||||||
|
Loading…
Reference in New Issue
Block a user