Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created July 24, 2008 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adelcambre/2228 to your computer and use it in GitHub Desktop.
Save adelcambre/2228 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment