stadtratmonitor/config/initializers/elasticsearch_config.rb

5 lines
141 B
Ruby
Raw Permalink Normal View History

2016-01-23 20:32:22 +01:00
config = {
host: ENV.fetch('ELASTICSEARCH_URL', 'http://localhost:9200')
}
Elasticsearch::Model.client = Elasticsearch::Client.new(config)