Skip to content

Commit

Permalink
Merge pull request #109 from zhishi-project/elasticsearch
Browse files Browse the repository at this point in the history
changed the configuration approach for elasticsearch
  • Loading branch information
Oreoluwa authored Jun 13, 2016
2 parents 7eaa86e + b4fa827 commit 64c3c0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/initializers/elasticsearch.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
hosts = ENV["ELASTIC_SEARCH_HOST_URL"].try(:split, ',').try(:map, &:strip)
config = {
host: (ENV["ELASTIC_SEARCH_HOST_URL"] || "http://localhost:9200/"),
hosts: (hosts || "http://localhost:9200/"),
transport_options: {
request: { timeout: 5 }
},
Expand Down

0 comments on commit 64c3c0c

Please sign in to comment.