forgeplus/config/initializers/elasticsearch.rb

3 lines
107 B
Ruby

redis_config = Rails.application.config_for(:elasticsearch)
ENV['ELASTICSEARCH_URL'] = redis_config['url']