# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
MapPlatform::Application.initialize!

Mime::Type.register 'application/xml', :gpx

# deprecated!
APP_SETTINGS = {
  :app_name => "Map Platform",
  :app_subline => "Web maps for EWNW Hamburg",
  :app_version =>"0.01 (#{::Rails.env})", 
  :app_url => "http://hamburg-webmap.ewnw.de/#{::Rails.env}",
  :pm_url => "https://www.rekoder.de/pm/" 
}


MapPlatform::Application.config.middleware.use ExceptionNotifier,
      :email_prefix => "[#{APP_SETTINGS[:app_name]} - #{::Rails.env}] ",
      :sender_address => %(no_reply@3plusx.de),
      :exception_recipients => %w( ulf.treger@3plusx.de )
