Author: jasha
Date: Tue Mar 27 08:01:04 2012
New Revision: 1305767
URL: http://svn.apache.org/viewvc?rev=1305767&view=rev
Log:
Document how to set the system propeerties for overriding default properties
files
Modified:
rave/site/trunk/content/documentation/host-configuration.mdtext
Modified: rave/site/trunk/content/documentation/host-configuration.mdtext
URL:
http://svn.apache.org/viewvc/rave/site/trunk/content/documentation/host-configuration.mdtext?rev=1305767&r1=1305766&r2=1305767&view=diff
==============================================================================
--- rave/site/trunk/content/documentation/host-configuration.mdtext (original)
+++ rave/site/trunk/content/documentation/host-configuration.mdtext Tue Mar 27
08:01:04 2012
@@ -44,6 +44,28 @@ After a (re)start of Tomcat, the portal
Note: Although `shindig.host`, `shindig.port` and `shindig.contextroot` can
also be overridden by setting them as individual system properties,
`container.js` contains hard coded values with `localhost`
+## Setting the system properties
+### Running Cargo
+The Cargo Maven plugin is configured in `rave-portal/pom.xml`. Go to the
element `systemProperties` and enable the elements
+`portal.override.properties` and `rave-shindig.override.properties` (also
modify its paths).
+
+ <systemProperties>
+ <net.sf.ehcache.skipUpdateCheck>true</net.sf.ehcache.skipUpdateCheck>
+
<portal.override.properties>/path/to/custom.portal.properties</portal.override.properties>
+
<rave-shindig.override.properties>/path/to/custom.shindig.properties</rave-shindig.override.properties>
+ </systemProperties>
+
+### Running a stand alone Tomcat server
+A common location to set the system properties is in tomcat/bin/setenv.sh. Add
a variable `RAVE_OPTS`
+
+ RAVE_OPTS="-Dportal.override.properties=/path/to/custom.portal.properties
+
-Drave-shindig.override.properties=/path/to/custom.rave.shindig.properties"
+
+Then add it to the `CATALINA_OPTS` variable
+
+ CATALINA_OPTS="${CATALINA_OPTS} ${RAVE_OPTS}"
+
+
[4]: http://localhost:8080/portal
[1]:
http://svn.apache.org/repos/asf/rave/trunk/rave-portal-resources/src/main/resources/portal.properties
[2]:
http://svn.apache.org/repos/asf/rave/trunk/rave-providers/rave-opensocial-provider/rave-opensocial-server/rave-shindig/src/main/webapp/WEB-INF/classes/containers/default/container.js