0

这是我得到的:

Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 3.60 KiB, done.
Total 10 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
 !     Heroku push rejected, no Cedar-supported app detected

To git@heroku.com:dry-plains-3718.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:dry-plains-3718.git'

早些时候我认为这是 .gitignore 文件的问题,但也可以正常工作。我忽略了文档中给出的虚拟环境和 *.pyc。我试过了 :

heroku create --stack cedar 

我还必须将我的 pub 密钥添加到 heroku。

heroku keys:add ~/.ssh/id_rsa.pub

这也不能解决我的问题。我对heroku的实现不太了解。我应该检查或尝试任何具体的事情吗?

请帮助我,因为我参考了许多文件,但仍然遇到同样的错误。提前致谢 :)

4

1 回答 1

1

我相信 cedar 通过 requirements.txt 文件的存在来识别 django 应用程序。

Pleaee 检查是为了确保您在被推送的源代码树的根目录中创建了“requirements.txt”和“Procfile”。名称区分大小写。

本教程包括有关创建它们的说明:

https://devcenter.heroku.com/articles/django

于 2012-08-21T07:35:07.533 回答