FLASK – How to configure port using app.config[‘PORT’]?

Solution
    $ export FLASK_RUN_PORT=8000
    $ flask run
 
    if __name__ == '__main__':
        app.run(host='127.0.0.1', port=, debug=True)