mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Configure Elasticsearch URL via ENV
This commit is contained in:
parent
3d9c9f4a64
commit
10de75f6f3
1 changed files with 4 additions and 0 deletions
4
config/initializers/elasticsearch_config.rb
Normal file
4
config/initializers/elasticsearch_config.rb
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
config = {
|
||||||
|
host: ENV.fetch('ELASTICSEARCH_URL', 'http://localhost:9200')
|
||||||
|
}
|
||||||
|
Elasticsearch::Model.client = Elasticsearch::Client.new(config)
|
Loading…
Reference in a new issue