Configure Elasticsearch URL via ENV

This commit is contained in:
Lars Henrik Mai 2016-01-23 20:32:22 +01:00
parent 3d9c9f4a64
commit 10de75f6f3

View file

@ -0,0 +1,4 @@
config = {
host: ENV.fetch('ELASTICSEARCH_URL', 'http://localhost:9200')
}
Elasticsearch::Model.client = Elasticsearch::Client.new(config)