From c4ff8b4179f9d8701085179ca54aa6e17547bbba Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 12 Jul 2012 18:32:44 +0200 Subject: [PATCH] SONAR-3579 Conflict with Ruby local installation --- sonar-server/src/main/webapp/WEB-INF/config/environment.rb | 4 ++++ 1 file changed, 4 insertions(+) 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' -- 2.39.5