Skip to content

Commit b23a3fc

Browse files
authored
Add NodeJS options to device agent cmd line args docs
Added documentation for NodeJS command line options and how to pass them to the Device agent
1 parent 4b418dc commit b23a3fc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/device-agent/running.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Options
5151
-i, --interval secs
5252
-p, --port number
5353
-m, --moduleCache Use local npm module cache rather than install
54+
--node-options Adds NodeJS command line arguments, can be specified multiple times
5455
5556
Web UI Options
5657
@@ -89,6 +90,12 @@ _Start the agent with a different working directory and the Web UI enabled_
8990
flowfuse-device-agent -d /path/to/working/directory -w --ui-user admin --ui-pass password --ui-port 8081
9091
```
9192

93+
_Start the agent with a larger NodeJS memory space and using the openssl CA certs_
94+
95+
```bash
96+
flowfuse-device-agent -d /path/to/working/directory --node-options='--max_old_space_size=1024' --node_options='--use-openssl-ca'
97+
```
98+
9299
## Running behind a HTTP Proxy
93100

94101
If the Remote Instance is behind a HTTP proxy, the agent can be configured to use the proxy by setting the `http_proxy`, `https_proxy` or `all_proxy` environment variables.
@@ -146,4 +153,4 @@ OS and Architecture as your target device, and then copy the modules on to your
146153
2. Place this file in an empty directory on your local device.
147154
3. Run `npm install` to install the modules. This will create a `node_modules` directory.
148155
4. On your target Remote Instance, create a directory called `module_cache` inside the Device Agent Configuration directory.
149-
5. Copy the `node_modules` directory from your local instance to the target instance so that it is under the `module_cache` directory.
156+
5. Copy the `node_modules` directory from your local instance to the target instance so that it is under the `module_cache` directory.

0 commit comments

Comments
 (0)