summaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-02 15:25:59 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-02 15:26:18 +0200
commitbd2390294bfd93a9327e8ec799fe5147b2911285 (patch)
tree17cd2c31c7fba597df4444893db3fbbce99849c1 /sonar-application
parent7073ca8dae9c6cf6dfceac59fab3365bc059a9b9 (diff)
downloadsonarqube-bd2390294bfd93a9327e8ec799fe5147b2911285.tar.gz
sonarqube-bd2390294bfd93a9327e8ec799fe5147b2911285.zip
SONAR-3675 fix dev mode
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/Webapp.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/Webapp.java b/sonar-application/src/main/java/org/sonar/application/Webapp.java
index cffb43dd5b9..d8c54deb512 100644
--- a/sonar-application/src/main/java/org/sonar/application/Webapp.java
+++ b/sonar-application/src/main/java/org/sonar/application/Webapp.java
@@ -29,6 +29,8 @@ class Webapp {
try {
Context context = tomcat.addWebapp(ctx, env.file("web").getAbsolutePath());
context.setConfigFile(env.file("web/META-INF/context.xml").toURI().toURL());
+ context.addParameter("rails.env", "production");
+ context.addParameter("jruby.max.runtimes", "1");
context.setJarScanner(new NullJarScanner());
} catch (Exception e) {