Browse Source

changing resin.xml file

Patrick Falls 12 years ago
parent
commit
16952f5c78
2 changed files with 23 additions and 1 deletions
  1. 22 0
      config/resin.xml
  2. 1 1
      servlet/setup.py

+ 22 - 0
config/resin.xml

@@ -0,0 +1,22 @@
+<resin xmlns="http://caucho.com/ns/resin"
+       xmlns:resin="http://caucho.com/ns/resin/core">
+
+  <cluster id="">
+
+    <resin:import path="${RESIN_HOME}/conf/app-default.xml" />
+    <log name="" level="config" path="stdout:" timestamp="[%H:%M:%S.%s] " />
+
+    <server id="">
+      <jvm-arg>-Xms1g</jvm-arg>
+      <jvm-arg>-Xmx1g</jvm-arg>
+
+      <http port="8080" />
+    </server>
+
+    <host>
+        <web-app-deploy path="${RESIN_HOME}/webapps"
+                      expand-preserve-fileset="WEB-INF/work/**"/>
+    </host>
+
+  </cluster>
+</resin>

+ 1 - 1
servlet/setup.py

@@ -17,7 +17,7 @@ def start(args):
       return 0
     subprocess.check_call("rm -rf $RESIN_HOME/webapps/*", shell=True)
     subprocess.check_call("cp servlet/target/servlet.war $RESIN_HOME/webapps/", shell=True)
-    subprocess.check_call("$RESIN_HOME/bin/resinctl start", shell=True)
+    subprocess.check_call("$RESIN_HOME/bin/resinctl -conf config/resin.xml start", shell=True)
     return 0
   except subprocess.CalledProcessError:
     return 1