mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-13 22:06:51 +08:00
Fix yii server
and add tests.
This commit is contained in:
@ -80,7 +80,13 @@ class ServeController extends Controller
|
||||
}
|
||||
$this->stdout("Quit the server with CTRL-C or COMMAND-C.\n");
|
||||
|
||||
passthru('"' . PHP_BINARY . '"' . " -S {$address} -t \"{$documentRoot}\" \"$router\"");
|
||||
$command = '"' . PHP_BINARY . '"' . " -S {$address} -t \"{$documentRoot}\"";
|
||||
|
||||
if ($this->router !== null && $router !== '') {
|
||||
$command .= " -r \"{$router}\"";
|
||||
}
|
||||
|
||||
passthru($command);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user