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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31854-2bdcb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31854-2bdcb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?