Support RAILS_RELATIVE_URL_ROOT

This commit is contained in:
wvengen 2019-05-10 17:48:04 +02:00
parent b823c7e2b6
commit 0354db19c6

View file

@ -1,4 +1,8 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Foodsoft::Application
# https://gist.github.com/ebeigarts/5450422
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
run Foodsoft::Application
end