【发布时间】:2020-11-17 11:17:48
【问题描述】:
我试图在 Heroku 上部署我的 python 应用程序,但是当我打开它时,我得到了这个-
当我检查日志时,我得到以下信息 -
2020-07-28T04:02:40.187477+00:00 heroku[router]: at=error code=H14 desc="No web processes running"
method=GET path="/" host=song-generator.herokuapp.com request_id=6359f422-79c7-4f9d-ab3f-399e0079467d
fwd="223.229.164.118" dyno= connect= service= status=503 bytes= protocol=https
2020-07-28T04:02:40.886308+00:00 heroku[router]: at=error code=H14 desc="No web processes running"
method=GET path="/favicon.ico" host=song-generator.herokuapp.com request_id=9e474e1a-b4b4-4709-8891-
58e0c3525056 fwd="223.229.164.118" dyno= connect= service= status=503 bytes= protocol=https
这是我在 Procfile 中的代码 -
web: gunicorn app:app --preload
当我运行 heroku ps:scale web=1 时,我得到以下信息 -
Scaling dynos... !
! Couldn't find that process type (web).
我尝试了所有在线解决方案,但没有一个对我有帮助!请帮助
【问题讨论】:
-
你在 master 分支上提交吗?
-
是的,我在 master 分支上提交
标签: python heroku web-deployment heroku-cli