我正在尝试在Heroku上部署我非常简单的Flask应用程序,但是当我尝试访问我的Heroku应用程序时,它给了我这个错误:
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.
我从终端检查了日志,它说:Failed to find attribute 'app' in 'app'。from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "VatsalayKhobragade.me"
项目结构
概述
web: gunicorn app:app
Requirements.txt
click==7.1.2
Flask==1.1.2
gunicorn==20.0.4
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
Werkzeug==1.0.1
请帮我看看,我这里做错了什么?