]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3579 Conflict with Ruby local installation
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Jul 2012 16:32:44 +0000 (18:32 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Jul 2012 16:38:52 +0000 (18:38 +0200)
sonar-server/src/main/webapp/WEB-INF/config/environment.rb

index f70f92d15c370ca046051df765afe50610744d1b..019a57bbbfe28987f382c0af668b7086a194e8b7 100644 (file)
@@ -1,6 +1,10 @@
 # Specifies gem version of Rails to use when vendor/rails is not present
 #RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
 
+# Avoid conflict with local ruby installations
+# See http://jira.codehaus.org/browse/SONAR-3579
+ENV["GEM_HOME"]= ENV.fetch("GEM_PATH", []).first
+
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
 require 'color'