Python 如何修复Heroku中错误的Procfile

Python 如何修复Heroku中错误的Procfile,python,django,heroku,Python,Django,Heroku,Heroku不会重新加载我的更正文件 我已经运行了git status,它显示了Procfile,我意识到我将Procfile拼写为小写的p。我看到了错误并更新了项目中的文件名,但当我再次保存并运行git status时,它仍然显示为小写。当然,现在它没有在Heroku上显示该站点 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "gi

Heroku不会重新加载我的更正文件

我已经运行了git status,它显示了Procfile,我意识到我将Procfile拼写为小写的p。我看到了错误并更新了项目中的文件名,但当我再次保存并运行git status时,它仍然显示为小写。当然,现在它没有在Heroku上显示该站点

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   procfile
我的第一个项目完全是新手。我应该删除Heroku上的项目,然后重新开始,还是我可以做一个git初始化,然后再把所有内容推到Heroku上

这对我很有效

  • 从工作项目目录中删除Procfile
  • 在命令行中
git add-A
要将更改添加到git,
git commit-m“删除的程序文件”
git推送heroku主机

  • 然后,在工作项目目录中创建具有正确大小写的新Procfile
  • 然后添加、提交并将代码推送到Heroku。完成了

“不是为提交而进行的更改”-因此,将更改提交并提交。如果你想将更改发布到Heroku,你需要先提交。我已更正并保存了所有更改两次,并尝试提交,但没有获取对配置文件的更改。Git仍然看到“procfile”而不是“procfile”。我认为删除Heroku中的项目并再次运行git init会更容易,这样它可以正确设置所有内容,然后再次运行Heroku create。您使用的是什么操作系统?我使用的是Windows 10。我试图重新初始化并再次提交,但它仍然在尝试重新提交那个错误的程序文件。不确定下一步要做什么。默认情况下,Windows的文件系统不区分大小写
Procfile
Procfile
是同一个东西,因此不能直接将其中一个重命名为另一个。看见
remote: -----> Discovering process types
remote:
remote:  ~     Mis-cased procfile detected; ignoring.
remote:  ~     Rename it to Procfile to have it honored.
remote:
remote:        Procfile declares types -> (none)