Use correct temp dir for Ruby on Rails app

This commit is contained in:
Simon Brandhof 2014-09-25 18:41:00 +02:00
parent 0d4f47c583
commit 4a5a256eef

View File

@ -72,7 +72,7 @@ Rails::Initializer.run do |config|
# The development mode (real-time edition of ruby code) can be enabled on an app by replacing the
# following line by :
# config.plugin_paths << '/absolute/path/to/myproject/src/main/resources/org/sonar/ror'
config.plugin_paths << "#{Java::OrgSonarServerUi::JRubyFacade.getInstance().getServerHome()}/temp/ror"
config.plugin_paths << "#{Java::JavaLang::System.getProperty("java.io.tmpdir")}/ror"
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)