我浏览了几乎所有与这次拒绝相关的问题。我最接近我的解决方案是 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/