Skip to content

Environment Variables

Clarive Environment Variables

Here is a list of all environment variables that affect the way Clarive works.

Warning

Most environement variables are not meant to be set by a user. Set them only if instructed by your Clarive support representative or if you really know what you are doing.

Variable Description
CLARIVE_BASE Installation directory of Clarive
CLARIVE_CACHE_RESET Set this to 1 to clear the cache on each reload
CLARIVE_CACHE_TRACE Set this to 1 to get debug messages each time the Cache is accessed
CLARIVE_COMPILED (INTERNAL USE)
CLARIVE_CONFIG Set the config name, same as the -c flag
CLARIVE_DEBUG_GQL Set this to 1 to reload GraphQL code with every call. This slows Clarive down.
CLARIVE_DEBUG Set the default environment name
CLARIVE_DIE_ON_WARN Set the default environment name
CLARIVE_DISABLE_TOUCH_PARENT Set the default environment name
CLARIVE_DISPATCHER_ID Set the default environment name
CLARIVE_ENV (DEPRECATED) The same as the CLARIVE_CONFIG var
CLARIVE_FAIL_MISSING_LEXICON (NOT RECOMMENDED) Set this to 1 to fail on missing translation lexicon.
CLARIVE_HOME Location of the clarive/ directory.
CLARIVE_JOBDIR Set a different directory for jobs, same as jobdir: in the config file
CLARIVE_LANG Set the default language, same as lang: in the config file. Accepted values: en and es.
CLARIVE_LOGDIR Set the log directory, same as logdir: in the config file
CLARIVE_MIGRATE_NOW (INTERNAL USE)
CLARIVE_MIN_MONGO_VERSION (NOT RECOMMENDED) Use this variable to force Clarive to accept a different (lower) MongoDB version
CLARIVE_MOOSE_EXCEPTION Set this to 1 to see the original Moose exception format.
CLARIVE_NO_CACHE (NOT RECOMMENDED) Set this to 1 to use Clarive without its cache. This is extremely slow.
CLARIVE_NO_SEMS (NOT RECOMMENDED) Set this to 1 to disable semaphore blocking. This will break concurrency checks.
CLARIVE_PARSE_TIMEOUT (NOT USED)
CLARIVE_PERM_SESSION_DEBUG Set this to 1 to see the permissions cache debug messages.
CLARIVE_PERM_SESSION Set this to off or 0 to disable the permissions cache.
CLARIVE_PIDDIR Set the directory for pid files, same as the pidfile: option in the config file
CLARIVE_PROFILE_LOAD (INTERNAL USE)
CLARIVE_RETURN (INTERNAL USE)
CLARIVE_SETUP (INTERNAL USE)
CLARIVE_TEMP Set the path to the temporary files, same as config option tempdir:
CLARIVE_TEST (NOT RECOMMENDED) Sets Clarive into testing mode.
CLARIVE_TRACE Set this to db or all to print all database calls to the log.
CLARIVE_UID Universal ID for recording a configuration.