简体   繁体   English

在 Heroku 中部署 flask 应用程序时出错

[英]Error while deploying flask app in Heroku

My folder and file details 1我的文件夹和文件详细信息1

Error while deploying flask app in heroku 2在 heroku 中部署 flask 应用程序时出错2

The Procfile is always a simple text file that is named Procfile without a file extension. Procfile 始终是一个简单的文本文件,名为Procfile ,没有文件扩展名。 For example, Procfile.txt is not valid.例如, Procfile.txt无效。

This is the reason why Heroku isn't able to find any web processes to run.这就是 Heroku 无法找到任何web进程运行的原因。 (Error Code H14: No web dynos running) (错误代码 H14:没有 web 测功机正在运行)

Fix:使固定:

Change Procfile.txt to Procfile in root of your repo.Procfile.txt更改为回购根目录中的Procfile

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM