Skip to content

Instantly share code, notes, and snippets.

@sintaxi
Forked from merbjedi/gist:201443
Created October 8, 2009 18:23
Show Gist options
  • Save sintaxi/205242 to your computer and use it in GitHub Desktop.
Save sintaxi/205242 to your computer and use it in GitHub Desktop.
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