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
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == '__main__': app.run(host="localhost", port=8000, debug=True)
Configure host and port like this in the script and run it with
python app.py