Instead of the environments struct, the default environment detection in ColdBox 5 will be like so:
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.