Skip to content
Snippets Groups Projects
Commit 443ae046 authored by Tibo's avatar Tibo
Browse files

read mark address from env

parent 95f8a3f9
No related branches found
Tags 0.0.5
No related merge requests found
Pipeline #4364 passed
......@@ -10,7 +10,8 @@ class MarkController extends Controller
public function __construct()
{
$this->server = new Client();
$mark_url = 'http://' . config("app.mark_host") . ':' . config('app.mark_port');
$this->server = new Client($mark_url);
}
public function status()
......
......@@ -2,6 +2,9 @@
return [
'mark_host' => env('MARK_HOST', '127.0.0.1'),
'mark_port' => env('MARK_PORT', 8080),
/*
|--------------------------------------------------------------------------
| Application Name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment