旅客未找到邮件宝石
我的应用程序在本地计算机上运行没有问题,但是当我将其上传到服务器时,出现此错误:
无法在任何源中找到 mail-2.2.14 (Bundler::GemNotFound)
我检查了 gem list 并安装了 mail-2.2.14,我不知道发生了什么。我将另一个应用程序上传到同一服务器并且运行良好。
任何人都可以帮助我吗?
编辑
我解决了运行问题
bundle update mail
My app is working with no problems in my local machine, but when I upload it to my server, I get this error:
Could not find mail-2.2.14 in any of the sources (Bundler::GemNotFound)
I checked with gem list and mail-2.2.14 is installed, I don't know what is happening. I uploaded another app to the same server and it worked fine.
Anyone can help me ?
EDIT
I Solved the problem running
bundle update mail
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的乘客使用的是哪种红宝石。
确保它与以下值相同来自
which ruby
命令的 ruby。如果您使用的是捆绑程序,请确保您已运行
bundle update
命令。Check which ruby your passenger is using.
Make sure that is the same with the value with the ruby from
which ruby
command.If you are using bundler, make sure you already run the
bundle update
command.您可以尝试检查供应商/缓存文件夹中的 gem。
bundle install
应该在本地缓存 gem,并从它们安装(如果存在)。您有完整的堆栈跟踪吗?
You could try checking in the gem in your vendor/cache folder.
bundle install
should cache the gems locally and install from them if they are present.Do you have a full stack trace?