public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Search Repo:
new config/rack.rb with the new middleware.
ezmobius (author)
Tue May 13 18:07:31 -0700 2008
commit  974e92e5bc5f0cbd6f9eca091ede16e7116f281c
tree    ffd98e11a7921db16b9b330e999722fb501b9dc2
parent  773147f74b64017809a8deaeb702d157be7751fa
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
3
...
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0
@@ -1 +1,12 @@
0
-run Merb::Rack::Application.new
0
\ No newline at end of file
0
+
0
+# use PathPrefix Middleware if :path_prefix is set in Merb::Config
0
+if prefix = ::Merb::Config[:path_prefix]
0
+ use Merb::Rack::PathPrefix, prefix
0
+end
0
+
0
+# comment this out if you are running merb behind a load balancer
0
+# that serves static files
0
+use Merb::Rack::Static, Merb.dir_for(:public)
0
+
0
+# this is our main merb application
0
+run Merb::Rack::MerbApplication.new
0
\ No newline at end of file

Comments

    No one has commented yet.