Using gunicorn to run flask projects has been 404. Is there something wrong with my routing?

start up with python run.py and you can access

normally.

I"ll try to run the simplest HelloWorld 404.Do you know anything about it?

gunicorn -b :5000 run:app

HelloWorld is like this

app/
    __init__.py
    views.py
run.py

_ _ init__.py

from flask import Flask
app = Flask(__name__)
from app import views

views.py

from app import app
@app.route("/")
def index()
    return "hello world"

run.py

from app import app

if __name__ == "__main__":
    app.run(host="0.0.0.0")
    

Aug.10,2021

did not use gunicorn, to look at the document, it should be like this

 gunicron -w1 -b0.0.0.0:5000 run:app
Menu