This commit is contained in:
2021-12-14 16:07:01 +00:00
parent 855bd9ca59
commit 5e8e583018
14 changed files with 109 additions and 40 deletions

View File

@@ -9,24 +9,32 @@ All data path configurations default to a location under the location specified
- AYANOVA_TEMP_FILES_PATH defaults to 'temp' folder inside AYANOVA_DATA_PATH
- AYANOVA_LOG_PATH defaults to 'logs' folder inside AYANOVA_DATA_PATH
## Override individual locations
Each of the path related configuration settings can also be specified individually, any that are left out will default to the above settings.
## Default
On Windows computers that use the installer, the default location for this setting is set by the installer the 'ProgramData' folder. There is no default for other operating systems or manual installations.
On Windows computers that use the installer, the default location for this setting is set by the installer the 'ProgramData' folder. There is no default for other operating systems or manual installations.
## Overriding
AyaNova expects the data path to be provided by an environment variable or command line parameter named
AyaNova expects the data path to be provided by a config.json property, environment variable or command line parameter named
`AYANOVA_DATA_PATH`
The value specified should be a string containing a fully qualified file path for the platform, for example:
`c:\ProgramData\ayanova`
Example config.json entry
```json
{
...other properties...
"AYANOVA_DATA_PATH": "c:\ProgramData\ayanova"
}
```
Example command line parameter
`ayanova.exe --AYANOVA_DATA_PATH="/var/lib/ayanova"`
@@ -40,5 +48,3 @@ Windows
Linux / MAC
`export AYANOVA_DATA_PATH="/var/lib/ayanova"`