public
Last active

  • Download Gist
boot.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# This configuration will work on heroku (16.04.2010)
# congig/boot.rb (rails3 app) or config/preinitializer.rb (rails 2.3.5 app)
 
# Use locked gems if present.
begin
require File.expand_path('../../.bundle/environment', __FILE__)
 
rescue LoadError
# Otherwise, use RubyGems.
require 'rubygems'
 
# And set up the gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.