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