getConfigFromEnvironmentVariables()

Overview

public struct function getConfigFromEnvironmentVariables()

Reads configuration form system environment variables and returns them as a struct.

Any environment variables whose name begins with PRESIDE_ will be treated as an environment variable intended to be read by the Preside application. The PRESIDE_ prefix will be stripped from the variable name before being used. Some examples of environment variable names that could be used:

PRESIDE_datasource.host=mydb.hostname
PRESIDE_datasource.port=3306
PRESIDE_showerrors=true
PRESIDE_autosyncdb=true