1.1 KiB
1.1 KiB
Config
The Rex configuration is as a json object in a file that Rex is pointed to as a commandline argument.
In that file's json object, there is a field named "config", whose properties define the configuration of Rex.
There are currently 4 parameters that can be configured in the configuration file:
project_root: The root directory of the project.units_path: The path to the units Library.logs_path: The path to the logs directory.config_version: The version of the configuration file.
Example
{
"config": {
"project_root": "/home/user/project",
"units_path": "/home/user/project/units",
"logs_path": "/home/user/project/logs",
"config_version": 1
}
}
There are some things to be aware of when setting the configuration file:
- The configuration file must be a valid json object.
- The configuration file must have a field named "config", whose properties define the configuration of Rex.
- All values for paths in this file are relative to the
project_rootpath. - The
logs_pathlocation will be created if it does not exist when Rex begins to execute.