Heroku在procfile中没有定义这样的进程类型web [英] Heroku No such process type web defined in procfile

查看:147
本文介绍了Heroku在procfile中没有定义这样的进程类型web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 heroku ps:scale web = 1 时,出现错误。

 缩放dynos ...失败
在Procfile中没有定义这样的进程类型web。

我的Procfile包含以下代码。

  worker:python vot.py 

我也做了 heroku run bash 并且Procfile在那里,文件名也是正确的。



我怎么解决这个问题?

解决方案

您的heroku命令具有web = 1,但您的Procfile具有worker。尝试:

heroku ps:scale worker = 1


When i'm runing heroku ps:scale web=1, I'm getting below error.

Scaling dynos... failed 
      No such process type web defined in Procfile.

My Procfile contains below code.

worker: python vot.py

I also did heroku run bash and the Procfile is there and file name is also correct.

How could i solve this ?

解决方案

Your heroku command has "web=1" but your Procfile has "worker". Try:

heroku ps:scale worker=1

这篇关于Heroku在procfile中没有定义这样的进程类型web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆