mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
4300f29ad7
Gem faraday was updated to 0.17 to solve the issue
11 lines
398 B
Ruby
11 lines
398 B
Ruby
# frozen_string_literal: true
|
|
|
|
client = if Rails.env.test?
|
|
Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: false
|
|
else
|
|
Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: true
|
|
end
|
|
|
|
Elasticsearch::Model.client = client
|
|
Elasticsearch::Persistence.client = client
|