Heroku错误消息未检测到Cedar支持的应用程序 [英] Heroku error message no Cedar-supported app detected

查看:73
本文介绍了Heroku错误消息未检测到Cedar支持的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在heroku和本Rails教程中遇到了更多问题.我正在制作的Rails教程让我开发了一个超级基本的应用程序.然后他们让我创建了一个存储桶帐户.之后,他们让我创建了一个Heroku帐户.现在他们要我把我的起源大师推送到我的heroku主机上.当我这样做时,我收到此错误消息,并且无法弄清.任何人都对我如何解决这个问题有任何暗示?提前非常感谢!

So, I am running into more problems with heroku and this rails tutorial. The rails tutorial I am making had me develop a super basic app. They then had me create a bit bucket account. After this they had me create a Heroku account. Now they are asking me to push my origin master to my heroku host. When I do this, I am getting this error message and I cannot figure it out. Anyone have any hints as to how I could solve this? Thanks so much in advance!

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)

推荐答案

我知道了!哦,上帝,我知道了!

I GOT IT! OH LORD I GOT IT!

天哪...

因此,史蒂夫和科林是正确的.实际上,我确实需要将其放在项目目录中,以便Heroku可以感知我的Ruby文件并进行相应的处理.当我将最初的应用程序推送到Bit Bucket时,我感到非常讨厌.我将应用程序推送到主目录内的Bit Bucket上.这使我的应用程序成为子文件夹,从而使Heroku无法检测到它的存在.

So, Steve and Collin were correct. I did in fact need to be in my project directory so Heroku could sense my Ruby files and proceed accordingly. I goofed up when I pushed my initial app to Bit Bucket. I pushed my app onto Bit Bucket inside of a main directory. This made my app the a subfolder, which in turn made it impossible for Heroku to detect its presence.

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

The solution was selecting all of my app, click and dragging it to the desktop and deleting the phony main folder. I the proceeded to put my files back into the Bit Bucket repository and add, committed, and pushed it to Bit Bucket.

如果您遇到这种情况,请确保还将应用程序中的隐藏文件夹也拖到新文件夹中,因为这确实可能使您感到混乱.

If this happens to you, make sure that you also drag the hidden folders in your app into your new folder as well, as that could really mess you up.

谢谢大家!

这篇关于Heroku错误消息未检测到Cedar支持的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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