Heroku:我的Django应用程序正在提供应用程序错误H14:"没有Web进程正在运行"

use*_*021 3 django heroku

根据Heroku网站,当我收到错误H14"No Web Processes Running"时,这是因为我需要通过以下方式扩展dynos:

heroku ps:scale web=1

但是,当我这样做时,我收到以下错误:

Scaling web processes... failed
 !    No such type as web
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这一问题?我想恢复我的网站!

当我跑步时,heroku ps我什么也看不见.

更新:它没有检测到我的Procfile.我没有显式的Procfile,并且之前没有使用过...这是绝对必要的吗?

bak*_*kal 6

我最近遇到了这个,我的网络工作正常,没有任何Procfile,直到最近...我的修复只是添加Procfile如下:

web: python manage.py runserver 0.0.0.0:$PORT --noreload
Run Code Online (Sandbox Code Playgroud)

然后推送到heroku.

  • 在git仓库中,root是我拥有它的地方,就像`Procfile`一样.推,然后我会尝试`heroku ps:scale web = 1`如果需要的话.这可能会有所帮助:https://devcenter.heroku.com/articles/django (3认同)