问题描述
Heroku不会重新加载我更正的Procfile
Heroku will not reload my corrected Procfile
我的git状态为Procfile,我意识到我用小写的p拼写了Procfile.我看到了错误并更新了项目中的文件名,但是当我再次保存并运行git status时,它仍然以小写形式显示.当然,现在它不在Heroku上显示该网站.
I have ran git status which shows me the Procfile and I realized that I spelled Procfile with a lower case p. I saw the error and updated the file name in my project but when I saved and ran git status again it stills shows it lower case. Of course now its not showing the site on 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
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)
我的第一个项目中的新手总数.我应该删除Heroku上的项目,然后重新开始,还是可以执行git init,然后再将所有内容再次推送到Heroku?
Total newbie on my first project. Should I delete the project on Heroku and just start all over fresh or can I just do a git init and then just push everything up again to Heroku?
推荐答案
- 从工作项目目录中删除 Procfile
- 在命令行中
- 然后,在工作项目目录中使用正确的大写字母创建新的Procfile
- 然后添加,提交并将代码推送到Heroku.完成!
这篇关于如何在Heroku中修复Miscased Procfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!