visuddhinanda 2 лет назад
Родитель
Сommit
6ae040bf3e
4 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      app/Tools/Export.php
  2. 1 1
      app/Tools/Markdown.php
  3. 1 1
      app/Tools/PaliSearch.php
  4. 3 3
      config/mint.php

+ 1 - 1
app/Tools/Export.php

@@ -17,7 +17,7 @@ class Export
             //Log::info($value['name']);
             //Log::info($value['content']);
         }
-        $host = config('mint.server.rpc.lily.host') . '/' . config('mint.server.rpc.lily.port');
+        $host = config('mint.server.rpc.lily.host') . ':' . config('mint.server.rpc.lily.port');
         $client = new \Palm\Lily\V1\TexClient($host, [
             'credentials' => \Grpc\ChannelCredentials::createInsecure(),
         ]);

+ 1 - 1
app/Tools/Markdown.php

@@ -28,7 +28,7 @@ class Markdown
     }
 
     public static function morus($text){
-        $host = config('mint.server.rpc.morus.host') . '/'. config('mint.server.rpc.morus.port');
+        $host = config('mint.server.rpc.morus.host') . ':'. config('mint.server.rpc.morus.port');
         Log::debug('morus host='.$host);
         $client = new \Mint\Morus\V1\MarkdownClient($host, [
             'credentials' => \Grpc\ChannelCredentials::createInsecure(),

+ 1 - 1
app/Tools/PaliSearch.php

@@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Log;
 class PaliSearch
 {
     public static function connect(){
-        $host = config('mint.server.rpc.tulip.host') . '/' . config('mint.server.rpc.tulip.port');
+        $host = config('mint.server.rpc.tulip.host') . ':' . config('mint.server.rpc.tulip.port');
         Log::debug('tulip host='.$host);
         $client = new \Mint\Tulip\V1\SearchClient($host, [
             'credentials' => \Grpc\ChannelCredentials::createInsecure(),

+ 3 - 3
config/mint.php

@@ -18,17 +18,17 @@ return [
             'grpc' =>  env('GRPC_WEB_SERVER', "http://localhost:9999"),
 
             'morus' => [
-                'host' => env('MORUS_GRPC_HOST', "http://localhost"),
+                'host' => env('MORUS_GRPC_HOST', "localhost"),
                 'port' => env('MORUS_GRPC_PORT', 9999),
             ],
 
             'lily' => [
-                'host' => env('LILY_GRPC_HOST', "http://192.168.43.100"),
+                'host' => env('LILY_GRPC_HOST', "localhost"),
                 'port' => env('LILY_GRPC_PORT', 9000),
             ],
 
             'tulip' => [
-                'host' => env('LILY_GRPC_HOST', "http://localhost"),
+                'host' => env('LILY_GRPC_HOST', "localhost"),
                 'port' => env('LILY_GRPC_PORT', 9990),
             ],
         ],