GithubHelp home page GithubHelp logo

Comments (11)

NullVoxPopuli avatar NullVoxPopuli commented on August 10, 2024 1

what if there was an option to store emails in redis?

from letter_opener_web.

fgrehm avatar fgrehm commented on August 10, 2024

Yeah, sorry that you had trouble with that :-( The only scenario where letter_opener_web works fine on Heroku is when you have a single dyno with no mails being sent on the background.

I'm just not sure about keeping mails on S3, maybe Redis would be an easier approach? I initially thought of keeping things on the app's DB, but that will end up polluting our schema.rb with dev only stuff.

I don't have a strong need for getting this gem to work on Heroku apart from the demo app, so it is something I might not work on for a while.

from letter_opener_web.

andreasklinger avatar andreasklinger commented on August 10, 2024

Completely fine and understandable. If i'd have a bit more of time i'd build this feature because your gem kicks ass.

Imho just add a note in the Readme - maybe just link to this issue - just to save the next person some time

from letter_opener_web.

abinoda avatar abinoda commented on August 10, 2024

Happened to me too.

from letter_opener_web.

fgrehm avatar fgrehm commented on August 10, 2024

Notice added to the README on 79b2427

from letter_opener_web.

grumpit avatar grumpit commented on August 10, 2024

I'm not familiar with how Heroku is set up, but at Engine Yard, as part of the deploy process, you are able to use deploy hooks. In the deploy hooks, you can symlink to shared resources and directories, so I have it set up so that before the app restarts, I do this:

run "mkdir -p #{config.shared_path}/system/letter_opener"
run "ln -nfs #{config.shared_path}/system/letter_opener #{config.release_path}/tmp/letter_opener"

and then everything works great, no matter how many instances I have running...

from letter_opener_web.

pseudomuto avatar pseudomuto commented on August 10, 2024

The resolution for now seems to be the notice in the README. Since this is a few years old, I'm going to close it. If this is still a concern, re-open.

from letter_opener_web.

fgrehm avatar fgrehm commented on August 10, 2024

That or storing it on a DB would also work

from letter_opener_web.

kreintjes avatar kreintjes commented on August 10, 2024

Still a concern for me. Could use this for Heroku when sending mails with deliver_later. However, if I'm the only one, it might not be worth the trouble :p

Any suggestions on how to test (mass) mails in staging environments on Heroku without sending them to real people?

from letter_opener_web.

eliotsykes avatar eliotsykes commented on August 10, 2024

There's a Heroku add-on that does this, there may be others: https://elements.heroku.com/addons/mailtrap

from letter_opener_web.

pdabrowski6 avatar pdabrowski6 commented on August 10, 2024

If anyone has troubles with using this gem on Heroku with multiple workers, I solved this issue with this PR: #129

If the PR is not merged, you can use the updated version the following way:

gem 'letter_opener_web', git: 'https://github.com/pdabrowski6/letter_opener_web', branch: 'support-for-s3'

from letter_opener_web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.