Support RAILS_RELATIVE_URL_ROOT
This commit is contained in:
parent
b823c7e2b6
commit
0354db19c6
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
# 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__)
|
||||||
|
|
||||||
|
# https://gist.github.com/ebeigarts/5450422
|
||||||
|
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
|
||||||
run Foodsoft::Application
|
run Foodsoft::Application
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue