问题描述
我尝试运行:
$ git push heroku master
-----
Total 7121 (delta 2300), reused 6879 (delta 2228)
! Heroku push rejected, no Cedar-supported app detected
To [email protected]:fierce-atoll-4127.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:fierce-atoll-4127.git'
我发现唯一可能的答案表明,如果您的应用程序名称中有下划线,则可能会导致此问题。我有一个 - ,我删除它,但我仍然无法得到这项工作。
The only possible answers that I have found suggested that if you have an underscore in your app name, it might cause this problem. I had a "-" and I removed it, but I still can't get this work.
以下是我的require.txt,它位于我的src文件夹以及settings.py和manage.py。
The following is in my requirements.txt, which sits under my src folder, alongside settings.py and manage.py.
Django==1.4.3
South==0.7.6
distribute==0.6.31
ipython==0.13.1
wsgiref==0.1.2
dj-database-url==0.2.0
推荐答案
刚刚遇到这个问题。我做了以下工作来解决它:(假设你在项目目录中)
Just had this problem too. I did the following to solve it: (assuming you're in project dir)
rm -rf .git
git init
git add .
git commit -m "First commit"
heroku create --stack cedar
git push heroku master
创建一个新的应用程序的一个稍微涉及的解决方案,但至少它是有效的。希望有帮助!
A slightly involved solution to create a new application, but at least it works. Hope that helps!
这篇关于git推英雄主人:Heroku推拒绝,没有Cedar支持的应用程序检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!