Browse Source

CLDC-2812: update app config to run from relative root

cldc-2812-run-app-from-relative-url
Sam Seed 1 year ago
parent
commit
23ee906080
  1. 6
      config.ru
  2. 2
      config/application.rb

6
config.ru

@ -2,5 +2,7 @@
require_relative "config/environment"
run Rails.application
Rails.application.load_server
map DataCollector::Application.config.relative_url_root || "/" do
run Rails.application
Rails.application.load_server
end

2
config/application.rb

@ -50,5 +50,7 @@ module DataCollector
helper_specs: false,
controller_specs: false
end
config.relative_url_root = ENV["RAILS_RELATIVE_URL_ROOT"]
end
end

Loading…
Cancel
Save