gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 13:11:05 25 4
gpt4 key购买 nike

所以,我在使用 heroku 和这个 rails 教程时遇到了更多问题。我正在制作的 rails 教程让我开发了一个 super 基本的应用程序。然后他们让我创建一个比特桶帐户。在此之后,他们让我创建了一个 Heroku 帐户。现在他们要求我将我的 origin master 推送到我的 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)

最佳答案

您需要cd到您的项目目录中,正如我假设的 ~/work-space不是您的应用程序的名称。

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

更新

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

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

或者

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

rm -rf .git
git init
git add .
git commit -am "Reinitialize"
heroku create --stack cedar
git push heroku master

关于Heroku 错误消息未检测到 Cedar 支持的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31330587/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com