Skip to content
Browse files

Merge branch 'ws_1_3' into gh-pages

  • Loading branch information...
2 parents 804e9a8 + b70a94e commit 0040be09fb4412bcb6e968d5fcb42bae5310c356 @purplefox purplefox committed Jul 31, 2012
Showing with 10 additions and 0 deletions.
  1. +4 −0 mods_manual.html
  2. +6 −0 mods_manual.md
View
4 mods_manual.html
@@ -79,6 +79,7 @@ <h1 style="font-size: 35px;">Modules Manual</h1>
<li><a href="#main-field">Main field</a></li>
<li><a href="#worker-modules">Worker modules</a></li>
<li><a href="#preserving-working-directory">Preserving working directory</a></li>
+<li><a href="#auto-re-deploy">Auto re-deploy</a></li>
</ul>
</li>
<li><a href="#module-path">Module path</a></li>
@@ -136,6 +137,9 @@ <h4 id="preserving-working-directory">Preserving working directory</h4><br/>
<p>However in some cases, you don't want this behaviour, you want the module to see its working directory as the working directory of whoever started the module.</p>
<p>An example of this would be the <code>web-server</code> module. With the web server, you use it to serve your own static files which exist either outside of a module or in your own module, they do not exist inside the <code>web-server</code> module itself.</p>
<p>If you want to preserve current working directory, set the field <code>preserve-cwd</code> to <code>true</code> in <code>mod.json</code>. The default value is <code>false</code>.</p>
+<h4 id="auto-re-deploy">Auto re-deploy</h4><br/>
+<p>You can configure a module to be auto-redeployed if it detects any files were modified, added or deleted in its module directory.</p>
+<p>To enable auto re-deploy for a module you should specify a field <code>auto-redeploy</code> with a value of <code>true</code> in <code>mod.json</code>. The default value for <code>auto-redeploy</code> is <code>false</code>.</p>
<h3 id="module-path">Module path</h3><br/>
<p>Any scripts or classes you place in the module directory will be available to the module (placed on the module path). If you have any jar dependencies you can also place these in a directory called <code>lib</code> and these will be added to the module path.</p>
<p>Here's an example JS module:</p>
View
6 mods_manual.md
@@ -60,6 +60,12 @@ An example of this would be the `web-server` module. With the web server, you us
If you want to preserve current working directory, set the field `preserve-cwd` to `true` in `mod.json`. The default value is `false`.
+#### Auto re-deploy
+
+You can configure a module to be auto-redeployed if it detects any files were modified, added or deleted in its module directory.
+
+To enable auto re-deploy for a module you should specify a field `auto-redeploy` with a value of `true` in `mod.json`. The default value for `auto-redeploy` is `false`.
+
### Module path
Any scripts or classes you place in the module directory will be available to the module (placed on the module path). If you have any jar dependencies you can also place these in a directory called `lib` and these will be added to the module path.

0 comments on commit 0040be0

Please sign in to comment.
Something went wrong with that request. Please try again.