mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
make Tracks run on subdir again
This commit is contained in:
parent
2757c88c0b
commit
863d780ad0
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
run Rails.application
|
|
||||||
|
map Tracksapp::Application.config.relative_url_root || "/" do
|
||||||
|
run Rails.application
|
||||||
|
end
|
||||||
|
|
|
@ -29,7 +29,7 @@ module Tracksapp
|
||||||
# config.i18n.default_locale = :de
|
# config.i18n.default_locale = :de
|
||||||
|
|
||||||
# configure Tracks to handle deployment in a subdir
|
# 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
|
# allow onenote:// and message:// as protocols for urls
|
||||||
config.action_view.sanitized_allowed_protocols = 'onenote', 'message'
|
config.action_view.sanitized_allowed_protocols = 'onenote', 'message'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue