diff --git a/app/Console/Commands/VerifySystemDatabase.php b/app/Console/Commands/VerifySystemDatabase.php index 9af6f293b..658965b05 100644 --- a/app/Console/Commands/VerifySystemDatabase.php +++ b/app/Console/Commands/VerifySystemDatabase.php @@ -33,7 +33,6 @@ class VerifySystemDatabase extends Command if ( $settings['mode'] !== 'shared' || ! config('upstreams.stored_configuration.enabled', false) - || config('upstreams.local_configuration.enabled', false) ) { return $this->failed( '新配置未被 Laravel 加载。', diff --git a/tests/Feature/Installation/VerifySystemDatabaseTest.php b/tests/Feature/Installation/VerifySystemDatabaseTest.php index 271ab04ca..95284d832 100644 --- a/tests/Feature/Installation/VerifySystemDatabaseTest.php +++ b/tests/Feature/Installation/VerifySystemDatabaseTest.php @@ -59,7 +59,9 @@ class VerifySystemDatabaseTest extends TestCase { config([ 'upstreams.stored_configuration.enabled' => true, - 'upstreams.local_configuration.enabled' => false, + // 生产刷新节点可能通过私有隧道覆盖上游端点;这不影响系统数据库 + // 本身是否已切换并加载,验证命令不能把两件事绑定在一起。 + 'upstreams.local_configuration.enabled' => true, ]); } }