Files
fn-serverless/docs/developers/configs.md
Travis Reeder 5a2602d42e Updated docs, cleaned things up, DRY's up function format stuff. (#688)
* Updated docs, cleaned things up, DRY's up function format stuff.

* deleted files

* updated bad link
2018-01-16 14:45:44 -08:00

21 lines
520 B
Markdown

# Function Config Vars
There are three ways to get configuration variables into a function, all of which will be available as environment variables.
These are ordered in order of preference, the later ones overriding the previous ones.
## 1. Application level configuration
```sh
fn apps config set myapp LOG_LEVEL debug
```
## 2. Function configuration from func.yaml
See [Function file](function-file.md) for more info.
## 3. Route level configuration
```sh
fn routes config set myapp hello2 LOG_LEVEL info
```