Rails 3 Heroku Push Master 问题

发布于 2024-10-04 19:01:39 字数 756 浏览 1 评论 0原文

当我推送我的 Rails 3 应用程序 git heroku master 时,我收到此错误消息:

-----> Heroku 接收推送 ----->检测到 Rails 应用 !默认情况下,Heroku Bamboo 不包含任何 Rails gem。 !您需要在 .gems 或 Gemfile 中声明它。 !有关指定 gem 的详细信息,请参阅 http://docs.heroku.com/gems。 ! Heroku 推送被拒绝,未指定 Rails gem。

错误:挂钩/预接收已退出,错误代码为 1 至 [电子邮件受保护]:glowing-rain-62.git ! [远程拒绝]master-> master(预接收挂钩拒绝) 错误:无法将一些引用推送到“[电子邮件受保护]:发光- rain-62.git'

我在 gemfile 中指定了 gem 'rails'、'3.0.3',所以我不确定问题是什么......如果有人可以提供帮助,我将非常感激。谢谢..

when I push my rails 3 app git heroku master I get this error msg:

-----> Heroku receiving push
-----> Rails app detected
! Heroku Bamboo does not include any Rails gems by default.
! You'll need to declare it in either .gems or Gemfile.
! See http://docs.heroku.com/gems for details on specifying gems.
! Heroku push rejected, no Rails gem specified.

error: hooks/pre-receive exited with error code 1
To [email protected]:glowing-rain-62.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:glowing-rain-62.git'

I have gem 'rails', '3.0.3' specified in my gemfile, so I am not sure what the issue is....If anyone could help I would really appreciate it. Thanks..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

东走西顾 2024-10-11 19:01:39

不要忘记 Gemfile 区分大小写。确保该文件确实在您的存储库中。您还应该有一个 Gemfile.lock 文件。您正在运行哪个版本的捆绑程序?

Don't forget that Gemfile is case sensitive. Make sure the file is actually IN your repo. You should also have a Gemfile.lock file too. Which version of bundler are you running?

乙白 2024-10-11 19:01:39

您之前成功部署到 Heroku 了吗?

如果没有,您可能需要仔细检查 Rails,3.0.3 已提交到您的 Git 存储库,只是作为健全性检查...

Have you successfully deployed to Heroku before?

If not you may want to double-check that rails, 3.0.3 is committed to your Git repo just as a sanity check...

迷你仙 2024-10-11 19:01:39

我认为问题可能与 heroku 服务器类型(或惯用的:堆栈)有关。普通堆栈(我认为称为 Aspen)由 Debian Etch 运行,它不支持较新版本的 Rails(即 Rails 3),也不支持 Sinatra。

要解决这个问题,您可以切换到由 Debian Lenny 运行的 Bamboo 堆栈。您可以通过切换堆栈来完成此操作,如下所示:

heroku create yourname --stack bamboo-mri-1.9.2

“yourname”当然是您的应用程序的名称。之后它应该正常工作。

I think the problem might be connected with the heroku server type (or idiomatically: stack). The normal stack (called Aspen, I think) is runned by Debian Etch which doesn't support newer versions of Rails (i.e. Rails 3) and neither Sinatra.

To solve the problem you can switch to the Bamboo stack which is runned by Debian Lenny. You can do it by switching the stack as followed:

heroku create yourname --stack bamboo-mri-1.9.2

"yourname" is of course the name of your application. After that it should work as it should.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文