stadtratmonitor/config/initializers/elasticsearch_config.rb
2016-01-23 20:32:22 +01:00

4 lines
141 B
Ruby

config = {
host: ENV.fetch('ELASTICSEARCH_URL', 'http://localhost:9200')
}
Elasticsearch::Model.client = Elasticsearch::Client.new(config)