Wednesday, April 20, 2011

Re: [Rails] Re: How can I remove bundler from my rails 3 app?

On Wed, Apr 20, 2011 at 8:07 PM, MJW2529 <mjwhite2529@yahoo.com> wrote:

> I've tried running this on Glassfish and got the exact same error, so
> it must be in the bundler code.  I've removed bundler from the app and
> added the requires to the environment.rb file and did get this
> running.  However, it's obviously not an ideal solution.

boot.rb starts this way:

require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)

if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
end

That's done on purpose, so that it is trivial to out-opt. Removing the
Gemfile should be enough, if there's no Gemfile, no bundler code
should be called (and if it does, it is a bug).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate