Update index_root configuration access in RouteCommand

pull/672/head
飞扬 1 week ago committed by GitHub
parent b26598ff9d
commit 9a81068e06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,8 @@ class RouteCommand extends AbstractBaseCommand
{
$io = $this->app()->io();
if (isset($this->config['index_root']) === false) {
if (isset($this->config['runway']['index_root']) === false) {
$io->error('index_root not set in .runway-config.json', true);
return;
}
@ -50,7 +51,7 @@ class RouteCommand extends AbstractBaseCommand
$cwd = getcwd();
$index_root = $cwd . '/' . $this->config['index_root'];
$index_root = $cwd . '/' . $this->config['runway']['index_root'];
// This makes it so the framework doesn't actually execute
Flight::map('start', function () {

Loading…
Cancel
Save