diff --git a/application/clicommands/WebCommand.php b/application/clicommands/WebCommand.php index 4a245efa9..20e1e9128 100644 --- a/application/clicommands/WebCommand.php +++ b/application/clicommands/WebCommand.php @@ -9,6 +9,25 @@ use Icinga\Exception\IcingaException; class WebCommand extends Command { + /** + * Serve Icinga Web 2 with PHP's built-in web server + * + * USAGE + * + * icingacli web serve [options] [] + * + * OPTIONS + * + * --daemonize Run in background + * --port= The port to listen on + * --listen= The address to listen on + * The document root directory of Icinga Web 2 (e.g. ./public) + * + * EXAMPLES + * + * icingacli web serve --port=8080 + * icingacli web serve --listen=127.0.0.1:8080 ./public + */ public function serveAction() { $minVersion = '5.4.0'; @@ -30,7 +49,6 @@ class WebCommand extends Command $socket = $listen; } - // TODO: Sanity check!! if ($socket === null) { $socket = $this->Config()->get('standalone', 'listen', '0.0.0.0:80'); }