I want to change the host and port that my app runs on. I set host and port in app.run, but the flask run command still r
host
port
app.run
flask run
You also can use it:
if __name__ == "__main__": app.run(host='127.0.0.1', port=5002)
and then in the console use it
set FLASK_ENV=development python app.py