【问题标题】:Error while deploying flask app in Heroku在 Heroku 中部署烧瓶应用程序时出错
【发布时间】:2021-06-03 04:52:06
【问题描述】:

我的文件夹和文件详细信息1

在 heroku 2 中部署烧瓶应用程序时出错

【问题讨论】:

    标签: python flask heroku


    【解决方案1】:

    Procfile 始终是一个简单的文本文件,名为Procfile,没有文件扩展名。例如,Procfile.txt 无效。

    这就是 Heroku 无法找到任何要运行的 web 进程的原因。 (错误代码 H14:没有 web dynos 运行)

    修复:

    在你的 repo 的根目录中将 Procfile.txt 更改为 Procfile

    参考:https://devcenter.heroku.com/articles/procfile

    【讨论】:

    • 我还是有同样的问题
    • web: gunicone main:app is my procfile .
    • 我需要改变吗
    • 这是Procfile 中的web: gunicorn main:app 格式,其中main 指的是main.py,app 指的是app = Flask(name)
    猜你喜欢
    • 1970-01-01
    • 2020-10-19
    • 1970-01-01
    • 1970-01-01
    • 2020-11-08
    • 2017-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多