Author: crossley
Date: Fri Apr 6 22:18:53 2007
New Revision: 526363
URL: http://svn.apache.org/viewvc?view=rev&rev=526363
Log:
Add explanation of Cocoon Running Modes.
Modified:
forrest/trunk/site-author/content/xdocs/howto-dev.xml
forrest/trunk/site-author/content/xdocs/site.xml
forrest/trunk/site-author/status.xml
Modified: forrest/trunk/site-author/content/xdocs/howto-dev.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/site-author/content/xdocs/howto-dev.xml?view=diff&rev=526363&r1=526362&r2=526363
==============================================================================
--- forrest/trunk/site-author/content/xdocs/howto-dev.xml (original)
+++ forrest/trunk/site-author/content/xdocs/howto-dev.xml Fri Apr 6 22:18:53
2007
@@ -409,6 +409,25 @@
</p>
</section>
+ <section id="debug-modes">
+ <title>Cocoon Running Modes</title>
+ <p>
+ Cocoon startup reads additional properties from various files.
+ This enables some different properties to be used for production or
development.
+ By default, Forrest uses Cocoon in running mode "dev".
+ So it first reads from
<code>main/webapp/WEB-INF/properties/core.properties</code>
+ then from
+ <code>main/webapp/WEB-INF/properties/dev/core.properties</code>
+ </p>
+ <p>
+ To use a different mode, say "prod" for production, add to the
+ forrest.jvmargs in your forrest.properties file:
+ <code>-Dorg.apache.cocoon.mode=prod</code> and provide the relevant
+ properties in a matching "prod" sub-directory of
+ <code>main/webapp/WEB-INF/properties</code>
+ </p>
+ </section>
+
<section id="debug-intermediate">
<title>View intermediate processing</title>
<p>
Modified: forrest/trunk/site-author/content/xdocs/site.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/site-author/content/xdocs/site.xml?view=diff&rev=526363&r1=526362&r2=526363
==============================================================================
--- forrest/trunk/site-author/content/xdocs/site.xml (original)
+++ forrest/trunk/site-author/content/xdocs/site.xml Fri Apr 6 22:18:53 2007
@@ -97,6 +97,7 @@
<sitemap href="#sitemap"/>
<debug href="#debug"/>
<debug-cocoon-profiler href="#debug-cocoon-profiler"/>
+ <debug-modes href="#debug-modes"/>
<debug-sitemap-exec href="#debug-sitemap-exec"/>
<debug-validation href="#debug-validation"/>
</forrest-dev>
Modified: forrest/trunk/site-author/status.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/site-author/status.xml?view=diff&rev=526363&r1=526362&r2=526363
==============================================================================
--- forrest/trunk/site-author/status.xml (original)
+++ forrest/trunk/site-author/status.xml Fri Apr 6 22:18:53 2007
@@ -142,6 +142,11 @@
<link href="site:upgrading_08">upgrading to v0.8</link>
</action>
<!-- 2007-04 -->
+ <action dev="DC" type="add" context="docs">
+ Add explanation of
+ <link href="site:procedures/forrest-dev/debug-modes">Cocoon Running
Modes</link>
+ for setting different properties.
+ </action>
<action dev="DC" type="update" context="code">
Enhanced the Message of the Day (MOTD) facility to enable specific
matches.
See skinconf.xml from a "seed" site for configuration details.