This is the default environment implementation for Node.js:
Sets variables using rudimentary command line, environment and configuration file parsers.
Processes UNIX-style signals and sets process exit codes via ProcessManager
Creates a default storage pool using the loaded configuration.
You can modify this behavior:
Via configuration
By modifying Environment.default
By providing an Environment to your components other than Environment.default
The settings are applied in this order (the higher numbers overwrite lower numbers):
The following variables are defined by this class additionally to Environment:
environment
path.root
path.config
trace.path
trace.enable
storage.path
storage.clear
runtime.signals
runtime.exitcode
runtime.unhandlederrors
This is the default environment implementation for Node.js:
Sets variables using rudimentary command line, environment and configuration file parsers.
Processes UNIX-style signals and sets process exit codes via ProcessManager
Creates a default storage pool using the loaded configuration.
You can modify this behavior:
Via configuration
By modifying Environment.default
By providing an Environment to your components other than Environment.default
The settings are applied in this order (the higher numbers overwrite lower numbers):
The following variables are defined by this class additionally to Environment:
environment
- Name of the environment, Default "default"path.root
- Path considered as root for any files to store, Fallback: ".", Default: APPDATA/.matter (Windows), HOME/.matter else (or .matter-path.config
- Path to config file, Default: "config.json"trace.path
- Path of the trace file to write, Default: "trace.jsonl" relative to path.roottrace.enable
- Enable writing a trace filestorage.path
- Where to store storage files, Default: "path.root"storage.clear
- Clear storage on start? Default: falseruntime.signals
- By default register SIGINT and SIGUSR2 (diag) handlers, set to false if not wantedruntime.exitcode
- By default we set the process.exitcode to 0 (ok) or 1 (crash); set to false to disableruntime.unhandlederrors
- By default we log unhandled errors to matter.js log; set to false to disable