Guest User

Untitled

a guest
Feb 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. require 'rubygems'
  2.  
  3. require File.join(File.dirname(__FILE__), "bin", "common")
  4. require 'merb-core'
  5.  
  6. Merb.start(:merb_root => File.expand_path(File.dirname(__FILE__)),
  7. :environment => ENV['RACK_ENV'])
  8.  
  9. # whatever would normally go in rack.rb
  10. if prefix = ::Merb::Config[:path_prefix]
  11. use Merb::Rack::PathPrefix, prefix
  12. end
  13.  
  14. use Merb::Rack::Static, Merb.dir_for(:public)
  15.  
  16. run Merb::Rack::Application.new
Add Comment
Please, Sign In to add comment