ruby-on-rails - Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序(不同问题)

标签 ruby-on-rails ruby git heroku

我浏览了几乎所有与这次拒绝相关的问题。我最接近我的解决方案是 This .

但是,不同之处在于,我实际上确实正确拼写了 Gemfile,以便 Heroku 理解我的项目类型。

所以这是我的情况,我正在尝试将我的 Rails 项目推送到 Heroku,我的所有文件都正常并且在本地运行良好。不过,我已经在 Github 上有了它。正在关注this instruction ,我将我的代码推送到heroku。然后它给了我这个:

Initializing repository, done.
Counting objects: 3, done.
Writing objects: 100% (3/3), 228 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 3 (delta 0)
 !     Push rejected, no Cedar-supported app detected

To <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89eee0fdc9e1ecfbe6e2fca7eae6e4" rel="noreferrer noopener nofollow">[email protected]</a>:arcane-chamber-1013.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="67000e13270f0215080c124904080a" rel="noreferrer noopener nofollow">[email protected]</a>:arcane-chamber-1013.git'

有人遇到过同样类型的问题吗?您可以帮忙解决这个问题吗?

非常感谢!

最佳答案

你推送的是分支还是主分支?

你的 Gemfile 是这样拼写的,并且在根目录中吗?

当 Heroku 无法确定您的应用程序使用哪种默认支持的语言编写时,就会出现此错误消息 - 通常只有在缺少某些关键文件时才会出现这种情况。 Ruby 应用程序使用 Gemfile .

关于ruby-on-rails - Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序(不同问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22443691/

相关文章:

ruby-on-rails - Rspec redirect_to 显示操作

ruby-on-rails - 当我在 ruby​​ on rails 中生成迁移时,它会创建一个包含空方法的文件,为什么?

java - java cookbook 可以用来安装 oracle java 的本地副本吗?

ruby-on-rails - 我得到 "found character that cannot start any token while scanning for the next token"

git - 源代码树 - 如何还原推送的提交

git - 修改 Github 上推送提交的用户名

ruby-on-rails - 如何在rails中使用动态绑定(bind)执行原始更新sql

ruby-on-rails - 模型查询时出现 ArgumentError

git - 如何将 eclipse 项目从 git 导入到 Android Studio?

ruby-on-rails - 获取字段最大值的对象[Mongoid]