将新的 Rails 3.1 应用程序推送到 Heroku 导致 Sorcery mod 出现问题(需要 bson-1.4.1)
我有一个在本地运行良好的应用程序。一切似乎都已正确设置以传输到 Heroku,包括 Postgres gem(并且开发是使用 postgres 服务器完成的)。
问题是,当我尝试将其向上推时,我收到围绕当前有问题的三个依赖项(bson_ext、bson 和 mongoid、1.4.1)的错误消息。看来 Sorcery 需要这些(1.4.1 版本)才能运行。我通过手动下载将它们安装在本地,但它们是从在线资源中拉出的。因此,当 Heroku 尝试找到它们时,它找不到它们,并且中止了。我尝试指定对所有这些都使用 1.4.0,然后应用程序安装良好(并为 Cedar 堆栈进行数据库设置等)。
问题是,当我在他们的服务器上加载应用程序时,我收到通用的“哎呀,出现问题”Heroku 消息。检查实际的heroku日志后,我真的找不到任何错误。有什么方法可以实现这个功能呢?
感谢您的帮助。
I have an app that runs great locally. Everything seems to be set up correctly to transfer over to Heroku, including the Postgres gem (and dev was done using a postgres server).
The problem is, when I try to push it up, I get error messages surrounding the three currently problematic dependencies, bson_ext, bson, and mongoid, 1.4.1. It seems that Sorcery requires these (at 1.4.1) to run. I got them installed locally by downloading the manually, but they were yanked from the online sources. So when Heroku tries to find them, it can't, and it aborts. I tried specifying to use 1.4.0 for all of them, and the app then installs fine (and does the database setup stuff for the Cedar stack, etc).
The problem is that when I load the app on their server, I get the generic "oops, there's been a problem" Heroku message. Upon checking the actual heroku log, I can't really find anything wrong. What is the way to make this work?
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,通过为 mongo、bson 和 bson_ext gem 指定版本 1.3.1 来解决这个问题。我刚刚将其放入我的 Gemfile 中:
I ran into the same problem, and I was able to get past it by specifying version 1.3.1 for the mongo, bson, and bson_ext gems. I just put this in my Gemfile: