简体   繁体   English

运行“heroku ps:scale web=1”时出错:“找不到该进程类型(web)。”

[英]Error when running “heroku ps:scale web=1”: “Couldn't find that process type (web).”

I am attempting to deploy a Heroku Dash app from PyCharm.我正在尝试从 PyCharm 部署 Heroku Dash 应用程序。 After running the code to deploy it, I got Heroku error code "H14 - No web dynos running," the solution for which is supposed to be heroku ps:scale web=1 .运行代码进行部署后,我得到 Heroku 错误代码“H14 - No web dynos running”,解决方案应该是heroku ps:scale web=1 Here is the error I get when attempting to run that line:这是我尝试运行该行时遇到的错误:

Scaling dynos... !
 ▸    Couldn't find that process type (web).

Others with this problem have been advised to check their procfile.已建议有此问题的其他人检查他们的 procfile。 Mine is formatted correctly, with the name "Procfile."我的格式正确,名称为“Procfile”。 Within it is web: gunicorn main:server , where 'main' is the name of the Python file for my app.其中是web: gunicorn main:server ,其中“main”是我的应用程序的 Python 文件的名称。 Any other suggestions about what I could be doing wrong?关于我可能做错的任何其他建议?

The Procfile was created correctly but had not been committed before deployment. Procfile 已正确创建,但在部署之前尚未提交。

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

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