Created
January 13, 2011 13:37
-
-
Save jdee/777858 to your computer and use it in GitHub Desktop.
an entire Rails 3 boot.rb file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
# Set up gems listed in the Gemfile. | |
gemfile = File.expand_path('../../Gemfile', __FILE__) | |
begin | |
ENV['BUNDLE_GEMFILE'] = gemfile | |
require 'bundler' | |
Bundler.setup | |
rescue Bundler::GemNotFound => e | |
STDERR.puts e.message | |
STDERR.puts "Try running `bundle install`." | |
exit! | |
end if File.exist?(gemfile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment