forgeplus/config/initializers/elasticsearch.rb

3 lines
107 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
redis_config = Rails.application.config_for(:elasticsearch)
ENV['ELASTICSEARCH_URL'] = redis_config['url']