Setting Environment Variables
When running Spectre from the command line, information about the DiveLine server dataroot (dl-dataroot) and Project name are required. You can set two environment variables that Spectre uses as you run commands, or you can enter options each time you run a Spectre command. Setting the environment variables can simplify what you need to enter as you run commands. You can always override the environment variables by entering in the --dataroot or --project options on the command line.
Set the following two environment variables:
- DI_HOME—Set to the DiveLine server dataroot. For example:
- Windows: C:\di\solution\dl-dataroot
- UNIX: /di/solution/dl-dataroot
- DI_PROJECT—Set to the current project name. For example:
- Set DI_PROJECT to sales where sales is a project installed on the DiveLine server.
NOTE:
- Sometimes setting DI_HOME is enough because Spectre can often determine the Project name by looking at the paths of the files given to it on the command line.
- Spectre command line execution clears DI_HOME and DI_PROJECT environment variables when invoking Integrator for a plugin—often used by Measure Factory builds started by a Production Measures or Execute node.
See also: