]> source.dussan.org Git - sonarqube.git/commitdiff
How to enable dev mode on RoR apps
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 Aug 2012 08:14:16 +0000 (10:14 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 Aug 2012 08:14:16 +0000 (10:14 +0200)
sonar-server/src/main/webapp/WEB-INF/config/environment.rb

index 34b1f761c3c8afe8e70fe5d423b8d89513b0c028..46d42cf490bad1ae399096f95ea29487d275d78a 100644 (file)
@@ -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