270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke require 'pathname'
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke # Set up Rails configuration
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke rails_root = Pathname.new(File.dirname(__FILE__) << '/..')
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke # Load Bundler
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke ENV['BUNDLE_GEMFILE'] = rails_root.join('Gemfile').to_s
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke require 'rubygems'
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke # Load application settings
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke require rails_root.join('config/initializers/rails_config.rb')
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke # only load basic files, NOT the auxiliaries like hets.yml
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke setting_files(rails_root.join('config'), rails_env)
270a34ef2ffafe5c2d09eaa85555eb37a90eac17Tom Gehrke abs_settings_files = settings_files.map { |f| rails_root.join('config', f) }