Skip to content

Commit 5ea07a8

Browse files
Traverse downward from WP_CLI_ROOT, which isn't this dir
1 parent ef658e5 commit 5ea07a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Server_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ function __invoke( $_, $assoc_args ) {
7878
// Get the path to the router file
7979
$router_path = WP_CLI_ROOT . '/vendor/wp-cli/server-command/router.php';
8080
if ( ! file_exists( $router_path ) ) {
81-
// server-command must've been built as the base Phar
82-
$router_path = WP_CLI_ROOT . '/router.php';
81+
// server command must've been built with vendor/wp-cli/wp-cli
82+
$router_path = WP_CLI_ROOT . '/../../../router.php';
8383
if ( ! file_exists( $router_path ) ) {
8484
WP_CLI::error( "Couldn't find router.php" );
8585
}

0 commit comments

Comments
 (0)