Permalink
Browse files

comment call to geminstaller.install in default preinitializer

  • Loading branch information...
thewoolleyman committed Aug 25, 2009
1 parent 7301593 commit 32717dbc660568a5aa74c0a53dbf298b93865e2d
Showing with 8 additions and 6 deletions.
  1. +8 −6 lib/geminstaller_rails_preinitializer.rb
@@ -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.

0 comments on commit 32717db

Please sign in to comment.