From 4a6ab110d3082522597ec77d0c9144d5ea208279 Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Mon, 9 Mar 2020 15:57:10 +0100 Subject: [PATCH] Sweep dust under the rug. --- .env.flaskrun | 6 ++++++ README.md | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .env.flaskrun diff --git a/.env.flaskrun b/.env.flaskrun new file mode 100644 index 0000000..968d272 --- /dev/null +++ b/.env.flaskrun @@ -0,0 +1,6 @@ +# Only useful for development, source this +# after the virtualenv and before running `flask run`. + +export FLASK_APP="flaskr" +export FLASK_ENV="development" +export FLASK_RUN_EXTRA_FILES="content.yml" diff --git a/README.md b/README.md index e2f0eb9..6a1f0c6 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,10 @@ Then, source it to enable it. ## Development source venv/bin/activate - export FLASK_APP=flaskr - export FLASK_ENV=development - export FLASK_RUN_EXTRA_FILES="content.yml" + source .env.flaskrun flask run Then, visit http://localhost:5000 -> We're trying to remove the need for the `export` statements, but… -- libgit2 0.21.2