allow use of env var UUID for now
This commit is contained in:
parent
7feec2ffd4
commit
c3458bf16b
|
|
@ -41,7 +41,12 @@ class Provider extends AbstractServiceProvider
|
||||||
return $builder->build();
|
return $builder->build();
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->container->instance('blomstra.search.elastic_index', Arr::get($elastic, 'index', 'flarum'));
|
$index = env('UUID') ?? Arr::get($elastic, 'index', 'flarum');
|
||||||
|
|
||||||
|
$this->container->instance(
|
||||||
|
'blomstra.search.elastic_index',
|
||||||
|
$index
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function boot()
|
public function boot()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue