Neos\Flow\Command\ServerCommandController::runCommand PHP Method

runCommand() public method

Starts an embedded server, see http://php.net/manual/en/features.commandline.webserver.php Note: This requires PHP 5.4+ To change the context Flow will run in, you can set the FLOW_CONTEXT environment variable: export FLOW_CONTEXT=Development && ./flow server:run
public runCommand ( string $host = '127.0.0.1', integer $port = 8081 ) : void
$host string The host name or IP address for the server to listen on
$port integer The server port to listen on
return void
    public function runCommand($host = '127.0.0.1', $port = 8081)
    {
        $command = Scripts::buildPhpCommand($this->settings);
        $address = sprintf('%s:%s', $host, $port);
        $command .= ' -S ' . escapeshellarg($address) . ' -t ' . escapeshellarg(FLOW_PATH_WEB) . ' ' . escapeshellarg(FLOW_PATH_FLOW . '/Scripts/PhpDevelopmentServerRouter.php');
        $this->outputLine('Server running. Please go to <b>http://' . $address . '</b> to browse the application.');
        exec($command);
    }
ServerCommandController