Python “DJANGO”;推送被拒绝,未检测到支持Cedar的应用程序Git发行
我按照以下说明进行操作: 我已经确保所有必要的文件都在那里,拼写正确(Procfile、requirements.txt等) 我得到了这个错误:Python “DJANGO”;推送被拒绝,未检测到支持Cedar的应用程序Git发行,python,django,git,heroku,web-deployment,Python,Django,Git,Heroku,Web Deployment,我按照以下说明进行操作: 我已经确保所有必要的文件都在那里,拼写正确(Procfile、requirements.txt等) 我得到了这个错误: $ git push heroku master Initializing repository, done. Counting objects: 85, done. Delta compression using up to 8 threads. Compressing objects: 100% (52/52), done. Writing obj
$ git push heroku master
Initializing repository, done.
Counting objects: 85, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (52/52), done.
Writing objects: 100% (85/85), 19.22 KiB, done.
Total 85 (delta 32), reused 78 (delta 29)
! Push rejected, no Cedar-supported app detected
To git@heroku.com:gentle-forest-5173.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:gentle-forest-5173.git'
我相信我知道这个错误,但我不知道如何修复它。我跳过了创建新git repo的步骤,因为我正在工作的目录已经绑定到git repo,我想我不需要这样做
考虑到这可能就是问题所在,我在这里遵循了最重要的答案:
建议这样做:
rm -rf .git
git init
git add .
git commit -m "First commit"
heroku create --stack cedar
git push heroku master
这使应用程序上线,但后来它与我承诺的github repo失去了联系,我相信这是因为rm-rf git
有没有办法上传这个文件,这样我就可以从github上克隆一个现有的项目,按照Heroku Django部署指南上的说明进行操作,但是对它进行裁剪,使它仍然与我的在线repo绑定?如果你真的有一个名为“Procile”的文件,那么你肯定没有确保所有的文件都拼写正确。@DanielRoseman只是一个打字错误,谢谢。正如我所说,当我执行最后一个命令块时,我已经让它运行了,但随后它删除了我与最初从中克隆它的git repo的连接。