Sha256: ff64c994233432bc758a4ee3832f5c603c66f039f604af5e54cf46bf19349b74

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

ENV['RAILS_ENV'] = (ENV['RAILS_ENV'] || 'development').dup

SOLR_PATH = "#{RAILS_ROOT}/config/solr" unless defined? SOLR_PATH

unless defined? SOLR_LOGS_PATH
  SOLR_LOGS_PATH = ENV["SOLR_LOGS_PATH"] || "#{RAILS_ROOT}/log"
end
unless defined? SOLR_PIDS_PATH
  SOLR_PIDS_PATH = ENV["SOLR_PIDS_PATH"] || "#{RAILS_ROOT}/tmp/pids/solr"
end
unless defined? SOLR_DATA_PATH
  SOLR_DATA_PATH = ENV["SOLR_DATA_PATH"] || "#{RAILS_ROOT}/solr/#{ENV['RAILS_ENV']}"
end
unless defined? SOLR_CONFIG_PATH
  SOLR_CONFIG_PATH = ENV["SOLR_CONFIG_PATH"] || SOLR_PATH
end

unless defined? RAKER_LOGS_PATH
  RAKER_LOGS_PATH = ENV["RAKER_LOGS_PATH"] || "#{RAILS_ROOT}/log"
end
unless defined? RAKER_PIDS_PATH
  RAKER_PIDS_PATH = ENV["RAKER_PIDS_PATH"] || "#{RAILS_ROOT}/tmp/pids/raker"
end
unless defined? RAKER_FEED_ARCHIVE_PATH
  if ENV['RAILS_ENV'] == 'production'
    RAKER_FEED_ARCHIVE_PATH = File.join(RAILS_ROOT, '..', '..', 'shared', 'feed_archive')
  elsif ENV['RAILS_ENV'] == 'development'
    RAKER_FEED_ARCHIVE_PATH = File.join(RAILS_ROOT, '..', 'feed_archive')
  end
end
unless defined? RAKER_DATABASE_CONFIG_FILE
  if ENV['RAILS_ENV'] == 'production'
    RAKER_DATABASE_CONFIG_FILE = File.join(RAILS_ROOT, '..', '..', 'shared', 'config', 'database.yml')
  else
    RAKER_DATABASE_CONFIG_FILE = File.join(RAILS_ROOT, 'config', 'database.yml')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
muck-raker-3.1.0 config/muck_raker_environment.rb
muck-raker-3.0.0 config/muck_raker_environment.rb
muck-raker-0.3.18 config/muck_raker_environment.rb
muck-raker-0.3.17 config/muck_raker_environment.rb
muck-raker-0.3.16 config/muck_raker_environment.rb
muck-raker-0.3.15 config/muck_raker_environment.rb
muck-raker-0.3.14 config/muck_raker_environment.rb
muck-raker-0.3.13 config/muck_raker_environment.rb
muck-raker-0.3.11 config/muck_raker_environment.rb
muck-raker-0.3.10 config/muck_raker_environment.rb
muck-raker-0.3.9 config/muck_raker_environment.rb
muck-raker-0.3.8 config/muck_raker_environment.rb
muck-raker-0.3.7 config/muck_raker_environment.rb
muck-raker-0.3.6 config/muck_raker_environment.rb
muck-raker-0.3.5 config/muck_raker_environment.rb
muck-raker-0.3.4 config/muck_raker_environment.rb