Saturday, 21 September 2019

Why need to run `export FLASK_APP` before running a Flask application?

I don't understand why if I want to run Flask application I need

export FLASK_APP=microblog.py
(venv) $ flask run

What's happen when we run it export FLASK_APP=microblog.py?
And then $ flask run?

Why need to run export FLASK_APP before running a Flask application?



from Why need to run `export FLASK_APP` before running a Flask application?

No comments:

Post a Comment