Skip to content

Commit 9c5931d

Browse files
committed
fix broken the path to the devnet host
1 parent 49afea9 commit 9c5931d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/apphost

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use DevNet\System\Runtime\Launcher;
44

55
$root = dirname(__FILE__, 2);
66

7-
// Loads local devnet core host if exist
8-
if (is_file($root . '/vendor/devnet/core/host/corehost.php')) {
9-
require $root . '/vendor/devnet/core/host/corehost.php';
7+
// Loads local devnet host if exist
8+
if (is_file($root . '/vendor/devnet/system/host.php')) {
9+
require $root . '/vendor/devnet/system/host.php';
1010
}
1111

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

19-
// Search for the global devnet core host
19+
// Search for the global devnet host
2020
foreach ($paths as $path) {
21-
if (is_file($path . '/../devnet/core/host/corehost.php')) {
22-
require $path . '/../devnet/core/host/corehost.php';
21+
if (is_file($path . '/../devnet/system/host.php')) {
22+
require $path . '/../devnet/system/host.php';
2323
break;
2424
}
2525
}

0 commit comments

Comments
 (0)