Setting the environment variable for JSON files data storage
Configure App Connect for Manufacturing to use JSON files for data storage by using an environment variable.
-
Edit /etc/bashrc file in any terminal text editor and enter the following lines.
- Set JSON files data storage by running the following command:
export USE_DATABASE= "false"
Note: By default, JSON files are used to store data source details, and client item mappings even if the environment variable is not set. - Set the directory path to store the JSON files by running the
following command:
For example, specify the path to store your JSON files.
export ACMFG_MAPPING_FILES_DIR= "<user_home_dir>/Mapping_JSON"
Note: By default the following directory path will be used to store the JSON files, if the environment variable is not set.<user_home_dir>/.acmfg/mappings
- Set JSON files data storage by running the following command:
-
Set the variable from Windows Environment Variables user interface.
- Click .
- In the System variables pane, click
New and add the following details.
Variable name Value USE_DATABASE Specify false. Note: By default, JSON files are used to store data source details, and client item mappings even if the USE_DATABASE environment variable is not set.ACMFG_MAPPING_FILES_DIR Specify a directory path to store the JSON files. For example, C:\Mapping_JSON. Note: If the environment variable is not set, by default the following directory path will be used to store the JSON files.<user_home_dir>/.acmfg/mappings
CONFIRM_DATASOURCE_CONNECTION Release 13.0.0.1Specify the value of this environment variable to true
to see a confirmation window while connecting to the server.You can now use Manufacturing perspective without waiting for connection timeout.
- Click OK to save the changes and close the System variables pane.
You can view the JSON files from the directory path, which was set by using the
ACMFG_MAPPING_FILES_DIR environment variable.
Attention: The JSON files are system files and must not be modified.