Skip to content

Commit a6f84bc

Browse files
author
David Baum
committed
Merge branch 'feature/fix_evalserver_urlroot' into development
2 parents 785aa0f + 8ca528d commit a6f84bc

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

evaluationserver/config.ru

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# This file is used by Rack-based servers to start the application.
22

3-
require ::File.expand_path('../config/environment', __FILE__)
4-
run Rails.application
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
5+
if ENV['RAILS_RELATIVE_URL_ROOT']
6+
map ENV['RAILS_RELATIVE_URL_ROOT'] do
7+
run Rails.application
8+
end
9+
else
10+
run Rails.application
11+
end

0 commit comments

Comments
 (0)