修复:系统数据库验证兼容生产上游隧道
This commit is contained in:
parent
85f3db56ce
commit
3317fda227
@ -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 加载。',
|
||||
|
||||
@ -59,7 +59,9 @@ class VerifySystemDatabaseTest extends TestCase
|
||||
{
|
||||
config([
|
||||
'upstreams.stored_configuration.enabled' => true,
|
||||
'upstreams.local_configuration.enabled' => false,
|
||||
// 生产刷新节点可能通过私有隧道覆盖上游端点;这不影响系统数据库
|
||||
// 本身是否已切换并加载,验证命令不能把两件事绑定在一起。
|
||||
'upstreams.local_configuration.enabled' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user