Sha256: 311de5f902ef4eddd1f1e5aa55f097c9f909218618de19fc3f2500f13f85f4c6

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

# use Rack::Head to handle HEAD requests properly
use Rack::Head

# Correctly set a content length.
use Merb::Rack::ContentLength

# 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
run Merb::Rack::Application.new

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
merb-gen-1.1.0 lib/generators/templates/application/merb_core/config/rack.rb
merb-gen-1.1.0 lib/generators/templates/application/merb_stack/config/rack.rb