我克隆了一个在网络上运行的Python Heroku Flask应用程序。我不能让它在本地运行。当我运行Procfile命令Heroku local
:
2:13:09 PM web.1 | [2018-11-06 14:13:09 -0500] [28448] [INFO] Starting gunicorn 19.7.1
2:13:09 PM web.1 | [2018-11-06 14:13:09 -0500] [28448] [INFO] Listening at: http://0.0.0.0:5000 (28448)
2:13:09 PM web.1 | [2018-11-06 14:13:09 -0500] [28448] [INFO] Using worker: sync
2:13:09 PM web.1 | [2018-11-06 14:13:09 -0500] [28451] [INFO] Booting worker with pid: 28451
我看到了404 page not found
。在我的main.py
中,我将route函数简化为:
from flask
app = Flask(__name__)
@app.route('/')
def new_func():
return "Hello World"