make Tracks run on subdir again

This commit is contained in:
Reinier Balt 2014-08-13 18:12:47 +02:00
parent 2757c88c0b
commit 863d780ad0
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
map Tracksapp::Application.config.relative_url_root || "/" do
run Rails.application
end

View file

@ -29,7 +29,7 @@ module Tracksapp
# config.i18n.default_locale = :de
# configure Tracks to handle deployment in a subdir
config.action_controller.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']
config.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']
# allow onenote:// and message:// as protocols for urls
config.action_view.sanitized_allowed_protocols = 'onenote', 'message'