Revision 630061d2
Added by Michael Moll almost 6 years ago
config.ru | ||
---|---|---|
require 'rack'
|
||
|
||
# load Rails environment
|
||
require ::File.expand_path('../config/environment', __FILE__)
|
||
require ::File.expand_path('../config/environment', __FILE__)
|
||
|
||
# apply a prefix to the application, if one is defined
|
||
# e.g. http://some.server.com/prefix where '/prefix' is defined by env variable
|
||
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
|
||
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
|
||
run Foreman::Application
|
||
end
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop