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

编程入门 行业动态 更新时间:2024-10-17 09:39:08
本文介绍了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 devcenter.heroku/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 devcenter.heroku/articles/buildpacks remote: remote: Verifying deploy.... remote: remote: ! Push rejected to safe-badlands-5004. remote: To git.heroku/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支持的应用程序

本文发布于:2023-07-14 10:06:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104051.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   检测到   错误   消息   Heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!