Type Method
detect(from:)
Detects the environment from
ConfigReader. Parses the vapor.env flag.static func detect(from config: ConfigReader) throws -> Environment
Parameters
configConfigReaderto parsevapor.envflag from.
Return Value
The detected environment, or default env.
Configuration keys:
vapor.env: (string, optional, default:.development): The name of the environment to use.