Heroku错误消息没有检测到Cedar支持的应用程序

Eri*_*and 6 heroku cedar

所以,我遇到了heroku和这个rails教程的更多问题.我正在制作的rails教程让我开发了一个超级基本的应用程序.然后他们让我创建了一个桶帐户.在此之后,他们让我创建了一个Heroku帐户.现在他们要我把我的原始大师推到我的heroku主持人那里.当我这样做时,我收到此错误消息,我无法弄清楚.任何人都有任何关于如何解决这个问题的提示?非常感谢提前!

alopex@alopex-TH55-HD:~/work-space$ git push heroku master
Counting objects: 66, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (55/55), done.
Writing objects: 100% (66/66), 16.39 KiB | 0 bytes/s, done.
Total 66 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:  !     Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote:       to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote: Building source:
remote: 
remote: 
remote:  !     Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote:       to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote: 
remote: Verifying deploy....
remote: 
remote: !   Push rejected to safe-badlands-5004.
remote: 
To https://git.heroku.com/safe-badlands-5004.git
! [remote rejected] master -> master (pre-receive hook declined)
Run Code Online (Sandbox Code Playgroud)

Col*_*ves 14

您需要进入cd项目目录,因为我假设~/work-space不是您的应用程序的名称.

执行以下操作:cd path/to/root/of/your/project再次尝试该命令.

UPDATE

从历史上看,对此更为重要的解决方案是两件事之一:

正确命名您的.buildpacks文件(确保不是.buildpack)

要么

重新初始化您的.git文件:

rm -rf .git
git init
git add .
git commit -am "Reinitialize"
heroku create --stack cedar
git push heroku master
Run Code Online (Sandbox Code Playgroud)


Eri*_*and 5

我知道了!哦,天哪,我知道了!

咳咳...


所以,史蒂夫和科林都是正确的.事实上我确实需要在我的项目目录中,所以Heroku可以感知我的Ruby文件并相应地继续.当我把我的初始应用程序推到Bit Bucket时,我搞砸了.我将我的应用程序推送到主目录中的Bit Bucket.这使我的应用程序成为子文件夹,这反过来使Heroku无法检测到它的存在.

解决方案是选择我的所有应用程序,单击并将其拖动到桌面并删除虚假的主文件夹.我继续将我的文件放回Bit Bucket存储库并添加,提交并将其推送到Bit Bucket.

如果您遇到这种情况,请确保您也将应用中的隐藏文件夹拖到新文件夹中,因为这可能会让您感到困惑.

感谢大家!