Skip to content

Commit

Permalink
Update es.php
Browse files Browse the repository at this point in the history
  • Loading branch information
William committed May 21, 2017
1 parent e823d03 commit 157d90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/es.php
Expand Up @@ -3,7 +3,7 @@
$app->add(function ($request, $response, $next) {
timer('connecting to ES');
try{
$this->client = Elasticsearch\ClientBuilder::create()->setHosts()->build();
$this->client = Elasticsearch\ClientBuilder::create()->setHosts($this->config['elasticsearch']['hosts'])->build();
}catch(Exception $error){
exit('Upgrading database');
}
Expand Down

0 comments on commit 157d90f

Please sign in to comment.