diff options
Diffstat (limited to 'config/initializers/elasticsearch.rb')
-rw-r--r-- | config/initializers/elasticsearch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/elasticsearch.rb b/config/initializers/elasticsearch.rb index 9be3660..71a032a 100644 --- a/config/initializers/elasticsearch.rb +++ b/config/initializers/elasticsearch.rb @@ -1,10 +1,10 @@ require 'elasticsearch/persistence/model' -Elasticsearch::Persistence.client = Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'localhost:9200' +Elasticsearch::Persistence.client = Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'elasticsearch:9300' if Rails.env.development? logger = ActiveSupport::Logger.new(STDERR) logger.level = Logger::INFO logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" } Elasticsearch::Persistence.client.transport.logger = logger -end
\ No newline at end of file +end |