use*_*000 4 python django heroku
Heroku 不会重新加载我更正的 Procfile
我已经运行了 git status ,它向我显示了 Procfile,我意识到我用小写的 p 拼写了 Procfile。我在我的项目中看到了错误并更新了文件名,但是当我再次保存并运行 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
Run Code Online (Sandbox Code Playgroud)
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)
Run Code Online (Sandbox Code Playgroud)
我的第一个项目的新手。我应该删除 Heroku 上的项目并重新开始,还是我可以执行 git init 然后将所有内容再次推送到 Heroku?
小智 6
这对我有用,
- 从您的工作项目目录中删除Procfile
- 在你的命令行
git add -A将您的更改添加到 git,git commit -m "Removed Procfile",git push heroku master
- 然后,在您的工作项目目录中使用正确的大小写创建新的 Procfile
- 然后添加、提交并将您的代码推送到 Heroku。完毕!