添加 RPC 端口

This commit is contained in:
iVampireSP.com 2023-02-08 21:05:24 +08:00
parent a6d2ec60fe
commit 71f85f296e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,9 @@ public function handle(): int
// 子进程
$this->info('正在启动 Web。');
$command = "php artisan octane:start --host=$node_host --port=$node_port";
$rpc_port = config('settings.node.rpc_port');
$command = "php artisan octane:start --host=$node_host --rpc-port=$rpc_port --port=$node_port";
$this->pipeCommand($command);
} else {
$this->report();

View File

@ -22,6 +22,7 @@
'type' => env('NODE_TYPE', 'slave'),
'id' => env('NODE_ID'),
'ip' => env('NODE_IP'),
'rpc_port' => env('NODE_RPC_PORT', 6001),
],
'roadrunner' => [
'version' => env('ROADRUNNER_VERSION', '2.12.1'),