Skip to content

Instantly share code, notes, and snippets.

@merbjedi
Created October 4, 2009 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save merbjedi/201443 to your computer and use it in GitHub Desktop.
Save merbjedi/201443 to your computer and use it in GitHub Desktop.
working passenger rackup for merb 1.1
begin
require File.join(File.dirname(__FILE__), "gems/environment")
rescue LoadError
begin
require 'minigems'
rescue LoadError
require 'rubygems'
end
end
require 'merb-core'
Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)),
:environment => ENV['RACK_ENV'])
Merb.environment = Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run
run Merb::Rack::Application.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment