Project

General

Profile

Download (383 Bytes) Statistics
| Branch: | Tag: | Revision:
017e1049 Ohad Levy
# This file is used by Rack-based servers to start the application.
f020721d Lukas Zapletal
require 'rack'

# load Rails environment
630061d2 Michael Moll
require ::File.expand_path('../config/environment', __FILE__)
f020721d Lukas Zapletal
b596ba59 Ivan Necas
# apply a prefix to the application, if one is defined
# e.g. http://some.server.com/prefix where '/prefix' is defined by env variable
630061d2 Michael Moll
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
b596ba59 Ivan Necas
run Foreman::Application
end