diff --git a/lib/geminstaller_rails_preinitializer.rb b/lib/geminstaller_rails_preinitializer.rb index eec10a4..9ab1baa 100644 --- a/lib/geminstaller_rails_preinitializer.rb +++ b/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.