We're updating the issue view to help you get more done. 

Change default environment detection to an environment variable

Description

Instead of the environments struct, the default environment detection in ColdBox 5 will be like so:

1 2 3 function detectEnvironment() { return getSystemSetting( "ENVIRONMENT", "development" ); }

This will look for an ENV var or Java System property of ENVIRONMENT and use that value as the environment name. If none is set, development will be used.

This is useful in situations like Docker containers where the container may ping itself at localhost, confusing the CGI lookup for environments.

Users can always go back to using the old environment structs.

Status

Assignee

Luis Majano

Reporter

Eric Peterson

Labels

None

Components

Priority

Minor