git push heroku master:Heroku push 被拒绝,没有检测到支持 Cedar 的应用程序 [英] git push heroku master: Heroku push rejected, no Cedar-supported app detected

查看:45
本文介绍了git push heroku master:Heroku push 被拒绝,没有检测到支持 Cedar 的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过跑步:

$ git push heroku master    
-----

Total 7121 (delta 2300), reused 6879 (delta 2228)
 !     Heroku push rejected, no Cedar-supported app detected

To git@heroku.com:fierce-atoll-4127.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com: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.

以下内容在我的 requirements.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 push heroku master:Heroku push 被拒绝,没有检测到支持 Cedar 的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆