2015-07-10 79 views
6

所以,我遇到了更多与heroku和这个rails教程有关的问题。我正在制作的rails教程让我开发了一个超级基本的应用程序。然后他们让我创建了一个桶账户。在此之后,他们让我创建一个Heroku帐户。现在他们要求我将我的原始大师推送到我的heroku主机。当我这样做时,我得到这个错误消息,我无法弄清楚。任何人有任何提示,我可以如何解决这个问题?非常感谢!Heroku错误消息没有检测到Cedar支持的应用程序

[email protected]:~/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) 
+0

你需要在你的项目文件夹中。 –

回答

5

我知道了!哦,主啊,我知道了!

恩...


所以,史蒂夫和科林是正确的。我确实需要在我的项目目录中,以便Heroku能够感知我的Ruby文件并相应地进行操作。当我将最初的应用程序推送到Bit Bucket时,我疯狂起来。我将我的应用程序推到了主目录中的Bit Bucket上。这使我的应用程序成为了一个子文件夹,这反过来又使Heroku无法检测到它的存在。

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

如果发生这种情况,请确保您也将应用程序中的隐藏文件夹拖入新文件夹中,因为这可能会让您感到困扰。

谢谢大家!

13

您需要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 
+0

这没有奏效。 :/我得到相同的错误信息。 –

+0

我已经更新了我的答案,以包含其他各种修补程序。 –

相关问题