Environment Variables

Cement Environment Variables

CEMENT_LOG

Parsed by the core framework, and extensions early on in runtime (before App is fully loaded). Triggers low-level framework logging, and toggles App.Meta.framework_logging.

Values:

  • 0

  • 1

Usage:

export CEMENT_LOG=1

This variable was introduced in Cement v3.0.8, and deprecates the previous setting CEMENT_FRAMEWORK_LOGGING.

CEMENT_FRAMEWORK_LOGGING

Deprecated in 3.0.8 in favor of CEMENT_LOG (same usage).

Overriding App Configuration

Out of the box, Cement supports overriding application configuration settings by environment variables.

Configuration:

myapp:
  foo: bar

The above configuration would be overridden by the $MYAPP_FOO environment variable.

export MYAPP_FOO=not-bar

Last updated