【发布时间】:2020-04-28 12:34:01
【问题描述】:
我正在尝试在 heroku 上部署我非常简单的烧瓶应用程序,但是当我尝试访问我的 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. 我从终端检查了日志,它说:找不到属性“应用”中的“应用”。
代码
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
请帮助解决这个问题。我在这里做错了什么?
【问题讨论】:
标签: flask heroku web-deployment