简体   繁体   English

将邮箱gem与heroku --cedar一起使用

[英]Using mailboxer gem with heroku --cedar

I want to use the mailboxer gem - https://github.com/ging/mailboxer But i noticed that The Ruby Toolbox has listed sqlite3-ruby as one of the dependencies for this gem. 我想使用邮箱gem - https://github.com/ging/mailboxer但是我注意到Ruby Toolbox列出了sqlite3-ruby作为这个gem的依赖项之一。 https://www.ruby-toolbox.com/projects/mailboxer https://www.ruby-toolbox.com/projects/mailboxer

My demo app is deployed on Heroku -- cedar and this does not go well with sqlite3 (from my previous experience where I had to migrate from sqlite3 to postgresql) 我的演示应用程序部署在Heroku-cedar上,这与sqlite3不相符(从我之前的经验,我必须从sqlite3迁移到postgresql)

So my question: Can I use the mailboxer gem together with Heroku? 所以我的问题:我可以和Heroku一起使用邮箱gem吗?

I had thought of a couple of workarounds but had not tested them: 我曾想过几个解决方法,但没有测试过它们:

  1. custom remove the dependency on sqlite3 - but i have no idea how this would affect the mailboxer gem 自定义删除对sqlite3的依赖 - 但我不知道这将如何影响邮箱gem
  2. install the gem anyway and hope for the best. 无论如何安装宝石并希望最好。 :) :)

So if anyone have used this gem successfully with Heroku on cedar(for rails 3.1) do let me know. 因此,如果有人在雪松上成功使用了这个宝石(对于rails 3.1),请告诉我。 Sorry if this question is a noob question. 对不起,如果这个问题是noob问题。 thank youuu. 谢谢你。

You should have no problem related with this dependency. 您应该没有与此依赖关系相关的问题。 As you can see in Rubygems https://rubygems.org/gems/mailboxer , sqlite3-ruby dependency is just for development. 正如您在Rubygems https://rubygems.org/gems/mailboxer中所看到的,sqlite3-ruby依赖仅用于开发。

So install the gem and hope for the best! 所以安装宝石并希望最好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM