From 9f9a332e60e219766982e5b246d0134f7256352d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 17 Aug 2012 10:14:16 +0200 Subject: [PATCH] How to enable dev mode on RoR apps --- sonar-server/src/main/webapp/WEB-INF/config/environment.rb | 5 +++++ 1 file changed, 5 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 34b1f761c3c..46d42cf490b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/config/environment.rb +++ b/sonar-server/src/main/webapp/WEB-INF/config/environment.rb @@ -39,6 +39,11 @@ Rails::Initializer.run do |config| config.reload_plugins=(RAILS_ENV == 'development') config.plugin_loader = EagerPluginLoader + + # Load the applications that are packaged with sonar plugins. + # 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" # Force all environments to use the same logger level -- 2.39.5