我正在尝试在Heroku上部署我的flask应用程序,但出现一些错误。
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
app.run(debug=True)
Procfile
web: gunicorn admin.app:app
早期的Procfile是
web: gunicorn admin : app
错误
2020-06-05T00:07:43.666951+00:00 heroku[web.1]: State changed from up to
crashed
2020-06-05T00:07:55.006308+00:00 heroku[router]: at=error code=H10 desc="App
crashed" method=GET path="/" host=mighty-sands-09860.herokuapp.com
request_id=ea5be9b6-0a78-440b-a6e7-fc632a265f92 fwd="223.185.13.71" dyno=
connect= service= status=503 bytes= protocol=https
2020-06-05T00:07:56.088554+00:00 heroku[router]: at=error code=H10 desc="App
crashed" method=GET path="/favicon.ico" host=mighty-sands-09860.herokuapp.com
request_id=5c6e662f-bc6d-4f81-a3b6-d67f6bb53722 fwd="223.185.13.71" dyno=
connect= service= status=503 bytes= protocol=https