Vapor v0.5.2 API Reference
Modules
Vapor provides mechanisms for loading runtime configuration in your system.
The dotenv config provider will look for a .env
file and load all of
the values for that file. The values can be written like so
The Env config module provides support for pulling configuration values from the environment. Bindings must be specified at a keyword list.
Module for loading supported file format configs Supported file formats: .json, .toml, .yaml. Bindings to specific keys must be provided as a keyword list. The values for each key must be either a string or a path based on the Access protocol.