Skip to content

Commit

Permalink
comment call to geminstaller.install in default preinitializer
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoolleyman committed Aug 25, 2009
1 parent 7301593 commit 32717db
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/geminstaller_rails_preinitializer.rb
Expand Up @@ -32,12 +32,14 @@ def preinitialize
# The 'install' method will auto-install gems as specified by the args and config
# IMPORTANT NOTE: Under recent RubyGems versions, this will install to ~/.gem
# The forking is a workaround to 'check_for_upgrade' in the configuration file, which causes
# script/console crashes on Mac OS X. See http://www.ruby-forum.com/topic/101243 for all the
# gnarly details.
pid = fork do
GemInstaller.install(args)
end
Process.wait(pid)
# script/console crashes on Mac OS X. See http://www.ruby-forum.com/topic/101243 for details
# It is probably best not to install from preinitializer - it has known problems
# under Passenger, and you should be installing your gems before you initialize rails anyway,
# via capistrano, chef, or some other mechanism. So, it is commented for now.
# pid = fork do
# GemInstaller.install(args)
# end
# Process.wait(pid)

# The 'autogem' method will automatically add all gems in the GemInstaller config to your load path,
# using the rubygems 'gem' method. Note that only the *first* version of any given gem will be loaded.
Expand Down

0 comments on commit 32717db

Please sign in to comment.