Skip to content

Commit

Permalink
fix broken the path to the devnet host
Browse files Browse the repository at this point in the history
  • Loading branch information
Maometos committed Mar 17, 2024
1 parent ecf981b commit 141ff27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/apphost
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use DevNet\System\Runtime\Launcher;

$root = dirname(__FILE__, 2);

// Loads local devnet core host if exist
if (is_file($root . '/vendor/devnet/core/host/corehost.php')) {
require $root . '/vendor/devnet/core/host/corehost.php';
// Loads local devnet host if exist
if (is_file($root . '/vendor/devnet/system/host.php')) {
require $root . '/vendor/devnet/system/host.php';
}

// Gets the path environment variable
Expand All @@ -16,10 +16,10 @@ if (PHP_OS_FAMILY == 'Windows') {
$paths = explode(':', getenv('PATH'));
}

// Search for the global devnet core host
// Search for the global devnet host
foreach ($paths as $path) {
if (is_file($path . '/../devnet/core/host/corehost.php')) {
require $path . '/../devnet/core/host/corehost.php';
if (is_file($path . '/../devnet/system/host.php')) {
require $path . '/../devnet/system/host.php';
break;
}
}
Expand Down

0 comments on commit 141ff27

Please sign in to comment.