Comments (11)
what if there was an option to store emails in redis?
from letter_opener_web.
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.
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.
Happened to me too.
from letter_opener_web.
Notice added to the README on 79b2427
from letter_opener_web.
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.
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.
That or storing it on a DB would also work
from letter_opener_web.
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.
There's a Heroku add-on that does this, there may be others: https://elements.heroku.com/addons/mailtrap
from letter_opener_web.
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)
- Bump rails deps requirements to 5.0+ HOT 1
- Update to latest bootstrap release (or use another framework) HOT 4
- ignore
- Missing gem dependency on rexml HOT 2
- clean up fix_link_html method
- Feature Request: Option to avoid launchy altogether
- No route matches [GET] “/bootstrap.min.css.map” HOT 1
- ActionController::InvalidAuthenticityToken in LetterOpenerWeb::LettersController#clear HOT 4
- layout somehow messed up HOT 3
- Not able to upgrade to Rails 7.1
- Getting "xprop: unable to open display" while sending an email in the docker. HOT 1
- Can't disable or toggle the dark theme HOT 2
- Execution of ApplicationController filters HOT 5
- Does not work with Rails API only HOT 2
- Wrong layout used in rails 5.1.4 HOT 1
- SystemStackError occures when more than 30 messages. HOT 2
- Missing Template Error HOT 2
- Reading application.scss under the node_modules directory? HOT 1
- Empty output on SMIME signed email HOT 4
- Rails 6.0 is out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from letter_opener_web.