改进 要求配置节点 IP
This commit is contained in:
parent
0885718c37
commit
5fc1b312a8
@ -30,6 +30,11 @@ class Work extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
|
if (!config('settings.node.ip')) {
|
||||||
|
$this->error('请先配置节点 IP。');
|
||||||
|
return CommandAlias::FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
$this->warn('正在初始化集群协调任务。');
|
$this->warn('正在初始化集群协调任务。');
|
||||||
Artisan::call('init');
|
Artisan::call('init');
|
||||||
Artisan::call('optimize');
|
Artisan::call('optimize');
|
||||||
|
Loading…
Reference in New Issue
Block a user