From: Simon Brandhof Date: Fri, 17 Aug 2012 08:14:16 +0000 (+0200) Subject: How to enable dev mode on RoR apps X-Git-Tag: 3.3~337 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f9a332e60e219766982e5b246d0134f7256352d;p=sonarqube.git How to enable dev mode on RoR apps --- 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