Python Heroku Procfile声明类型->;(无)

Python Heroku Procfile声明类型->;(无),python,heroku,gunicorn,procfile,Python,Heroku,Gunicorn,Procfile,我已经正确地将名称更改为带有大写字母p的Procfile,但问题仍然存在 这是Heroku在终端中说的: 以下是我的项目: 下面是Procfile中的代码: web: gunicorn app_with_handler.py:app --log-file - 我错过了什么,或者有什么我应该下一步尝试的吗?更新:通过删除Procfile、提交并推送到heroku来解决问题。然后再次创建相同的Procfile,提交并再次推送到heroku。这种方法似乎对我有效。如果您没有将Procfile和更

我已经正确地将名称更改为带有大写字母p的Procfile,但问题仍然存在

这是Heroku在终端中说的:

以下是我的项目:

下面是Procfile中的代码:

web: gunicorn app_with_handler.py:app --log-file -

我错过了什么,或者有什么我应该下一步尝试的吗?

更新:通过删除Procfile、提交并推送到heroku来解决问题。然后再次创建相同的Procfile,提交并再次推送到heroku。这种方法似乎对我有效。

如果您没有将Procfile和更改推送到git存储库,就会发生这种情况


在您使用“git push Heroku main”命令在Heroku上部署带有chages的应用程序之前,您应该首先将您的更改推送到git存储库,如上面所述。

尝试删除
:应用程序
尝试过,仍然会导致
Procfile声明类型->(无)