【问题标题】:H10 error in heroku after deploying the python app部署python应用程序后heroku中的H10错误
【发布时间】:2022-01-26 08:15:40
【问题描述】:

我已经使用 python BeautifulSoup 抓取了网站数据。在heroku上成功部署后,它给了我应用程序崩溃的H10错误。 我不明白这个错误。

我的 Procfile 有... 网络:运行这个东西

我无法理解发生此错误的原因。

【问题讨论】:

  • 能否分享一下Procfile的内容。
  • 我的 procfile 内容只有“web: run this thing”。没有别的。

标签: python heroku beautifulsoup


【解决方案1】:

H10 Heroku 错误相当模糊,它只是在应用崩溃时抛出。但是,H10 错误的一些原因包括:

  1. Procfile 错误
  2. 缺少必要的环境变量
  3. PORT 作为 Heroku 环境变量

当您的 Procfile 中出现错误时,通常会在 Python 中抛出 H10,因此也许可以调查一下。我建议安装gunicorn,它是一个 WSGI HTTP 服务器。

Procfile 的一些灵感链接here

【讨论】:

    猜你喜欢
    • 2017-11-04
    • 2021-12-06
    • 2021-11-27
    • 2021-03-20
    • 2019-12-05
    • 2021-11-03
    • 2018-06-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多