【发布时间】:2021-06-03 04:52:06
【问题描述】:
【问题讨论】:
【问题讨论】:
Procfile 始终是一个简单的文本文件,名为
Procfile,没有文件扩展名。例如,Procfile.txt无效。
这就是 Heroku 无法找到任何要运行的 web 进程的原因。 (错误代码 H14:没有 web dynos 运行)
修复:
在你的 repo 的根目录中将
Procfile.txt更改为Procfile。
【讨论】:
Procfile 中的web: gunicorn main:app 格式,其中main 指的是main.py,app 指的是app = Flask(name)