【问题标题】:Error in deploying app to Heroku, H14 Error将应用程序部署到 Heroku 时出错,H14 错误
【发布时间】: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


【解决方案1】:

我得到了答案,procfile 实际上是一个 .txt 文件,这就是它无法被检测到的原因

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-25
    • 2013-02-15
    • 2015-09-22
    • 2017-09-14
    • 2015-12-09
    • 2020-04-06
    • 2016-04-08
    • 2019-06-25
    相关资源
    最近更新 更多