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 runs on the default 127.0.0.1:8000
. How can I change the host and port that the flask
command uses?
if __name__ == '__main__':
app.run(host='0.0.0.0', port=3000)
set FLASK_APP=onlinegame
set FLASK_DEBUG=true
python -m flask run