Skip to content

Instantly share code, notes, and snippets.

@orlin
Created February 24, 2010 07:03
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 orlin/313197 to your computer and use it in GitHub Desktop.
Save orlin/313197 to your computer and use it in GitHub Desktop.
# config.ru
begin
# Try to require the preresolved locked set of gems.
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fall back on doing an unlocked resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end
Bundler.require(:default, :pancake)
require ::File.join(::File.expand_path(::File.dirname(__FILE__)), "app")
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment