2008-12-29 07:10:05 +00:00
|
|
|
# use PathPrefix Middleware if :path_prefix is set in Merb::Config
|
|
|
|
if prefix = ::Merb::Config[:path_prefix]
|
|
|
|
use Merb::Rack::PathPrefix, prefix
|
|
|
|
end
|
|
|
|
|
|
|
|
# comment this out if you are running merb behind a load balancer
|
|
|
|
# that serves static files
|
|
|
|
use Merb::Rack::Static, Merb.dir_for(:public)
|
|
|
|
|
|
|
|
# this is our main merb application
|
2009-04-08 00:30:12 +00:00
|
|
|
run Merb::Rack::Application.new
|