From 82680bf43f4a1e5eb24b2534c29cbe8bf1cd27bb Mon Sep 17 00:00:00 2001 From: Jordan Pittier Date: Mon, 30 Jan 2017 10:39:02 +0100 Subject: [PATCH] Fix docs/config.md: the MYAPP_SETTINGS is not exported If we don"t `export` the variable, it's not available in subcommand: MYAPP_SETTINGS=/path/to/config_file; python3 -c "import os; os.environ['MYAPP_SETTINGS']" Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/os.py", line 725, in __getitem__ raise KeyError(key) from None KeyError: 'MYAPP_SETTINGS' The ';' is the culprit here. --- docs/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config.md b/docs/config.md index 6dd67cf2..f5d56467 100644 --- a/docs/config.md +++ b/docs/config.md @@ -54,7 +54,7 @@ app.config.from_envvar('MYAPP_SETTINGS') Then you can run your application with the `MYAPP_SETTINGS` environment variable set: ``` -$ MYAPP_SETTINGS=/path/to/config_file; python3 myapp.py +$ MYAPP_SETTINGS=/path/to/config_file python3 myapp.py INFO: Goin' Fast @ http://0.0.0.0:8000 ```