Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'ws_1_3' into gh-pages

  • Loading branch information...
commit 0040be09fb4412bcb6e968d5fcb42bae5310c356 2 parents 804e9a8 + b70a94e
Tim Fox purplefox authored

Showing 2 changed files with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 mods_manual.html
  2. +6 0 mods_manual.md
4 mods_manual.html
@@ -79,6 +79,7 @@ <h1 style="font-size: 35px;">Modules Manual</h1>
79 79 <li><a href="#main-field">Main field</a></li>
80 80 <li><a href="#worker-modules">Worker modules</a></li>
81 81 <li><a href="#preserving-working-directory">Preserving working directory</a></li>
  82 +<li><a href="#auto-re-deploy">Auto re-deploy</a></li>
82 83 </ul>
83 84 </li>
84 85 <li><a href="#module-path">Module path</a></li>
@@ -136,6 +137,9 @@ <h4 id="preserving-working-directory">Preserving working directory</h4><br/>
136 137 <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>
137 138 <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>
138 139 <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>
  140 +<h4 id="auto-re-deploy">Auto re-deploy</h4><br/>
  141 +<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>
  142 +<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>
139 143 <h3 id="module-path">Module path</h3><br/>
140 144 <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>
141 145 <p>Here's an example JS module:</p>
6 mods_manual.md
Source Rendered
@@ -60,6 +60,12 @@ An example of this would be the `web-server` module. With the web server, you us
60 60
61 61 If you want to preserve current working directory, set the field `preserve-cwd` to `true` in `mod.json`. The default value is `false`.
62 62
  63 +#### Auto re-deploy
  64 +
  65 +You can configure a module to be auto-redeployed if it detects any files were modified, added or deleted in its module directory.
  66 +
  67 +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`.
  68 +
63 69 ### Module path
64 70
65 71 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.