【发布时间】:2021-07-17 03:29:49
【问题描述】:
我正在尝试在 Heroku 上部署一个 python 烧瓶应用程序,但我不断收到 H14(没有运行 Web 进程)错误。这是我的日志:
2021-07-17T03:02:17.638037+00:00 heroku[router]: at=error code=H14 desc="No web processes running ..."
我尝试了ps:scale web=1,但我也不断收到以下错误:
Scaling dynos... !
▸ Couldn't find that process type (web).
我的构建日志:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote: -----> No change in requirements detected, installing from cache
remote: -----> Using cached install of python-3.9.6
remote: -----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
...
remote: -----> Discovering process types
remote:
remote: -----> Compressing...
remote: Done: 361.4M
remote: -----> Launching...
...
当我运行heroku ps:
No dynos on ⬢ <project-name>
Procfile(是的,大写的 P):
web:gunicorn main:app
在这一点上我完全感到困惑。如果有人可以提供任何帮助,将不胜感激!谢谢!
-teleriffr
【问题讨论】:
-
你的 Procfile 应该是
web: gunicorn main:app,:和gunicorn之间有空格 -
@charchit 非常感谢!此修复由 H14 错误解决!我仍然收到 H10 错误,因为我没有使用 conda 安装我的软件包之一,但这让我克服了 H14 错误!非常感谢您的帮助!