System Settings (Java Properties and Environment Variables)
Name
Arguments
Description
Accessing System Settings in config/ColdBox.cfc or a ModuleConfig.cfc
config/ColdBox.cfc or a ModuleConfig.cfcAccessing System Settings in Application.cfc
Application.cfc
component {
variables.env = new coldbox.system.core.delegates.Env();
this.datasources[ "my_datasource" ] = {
driver = env.getSystemSetting( "DB_DRIVER" ),
host = env.getSystemSetting( "DB_HOST" ),
port = env.getSystemSetting( "DB_PORT" ),
database = env.getSystemSetting( "DB_DATABASE" ),
username = env.getSystemSetting( "DB_USERNAME" ),
password = env.getSystemSetting( "DB_PASSWORD" )
};
}Accessing System Settings in other files
Last updated
Was this helpful?