Sha256: 5458e67a4da61eec95840bdb2638a08141bf373dce43cd2b5ac48194fa22230e
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
ENV['RAILS_ENV'] = (ENV['RAILS_ENV'] || 'development').dup # RAILS_ROOT isn't defined yet, so figure it out. require "uri" dir = File.dirname(__FILE__) SOLR_PATH = File.expand_path("#{dir}/../solr") unless defined? SOLR_PATH SOLR_LOGS_PATH = "#{RAILS_ROOT}/log" unless defined? SOLR_LOGS_PATH SOLR_PIDS_PATH = "#{RAILS_ROOT}/tmp/pids" unless defined? SOLR_PIDS_PATH SOLR_DATA_PATH = "#{RAILS_ROOT}/solr/#{ENV['RAILS_ENV']}" unless defined? SOLR_DATA_PATH unless defined? SOLR_PORT config = YAML::load_file(RAILS_ROOT+'/config/solr.yml') SOLR_PORT = ENV['PORT'] || URI.parse(config[ENV['RAILS_ENV']]['url']).port end SOLR_JVM_OPTIONS = config[ENV['RAILS_ENV']]['jvm_options'] unless defined? SOLR_JVM_OPTIONS
Version data entries
4 entries across 4 versions & 1 rubygems