From: Simon Brandhof Date: Thu, 12 Jul 2012 16:32:44 +0000 (+0200) Subject: SONAR-3579 Conflict with Ruby local installation X-Git-Tag: 3.2~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4ff8b4179f9d8701085179ca54aa6e17547bbba;p=sonarqube.git SONAR-3579 Conflict with Ruby local installation --- diff --git a/sonar-server/src/main/webapp/WEB-INF/config/environment.rb b/sonar-server/src/main/webapp/WEB-INF/config/environment.rb index f70f92d15c3..019a57bbbfe 100644 --- a/sonar-server/src/main/webapp/WEB-INF/config/environment.rb +++ b/sonar-server/src/main/webapp/WEB-INF/config/environment.rb @@ -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'