-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Email to work via Docker #187
Comments
The issue seems to be the way email is setup in the openstreetmap-website container. By default, emails are not being delivered. ActionMailer's delivery array is not being populated. When I ran tcpdump, I didn't catch any connection attempt to AWS SES with the default I was however able to send an email from the ruby console using ActionMailer Logs from interactive ruby console.
|
@dakotabenjamin @eternaltyro you are right that this is because the openstreetmap-website isn't actually triggering those emails. I'm glad you were able to test through the Rails console. I'm 99% sure that this is because the Rails jobs worker is not started. If you uncomment this like https://github.com/developmentseed/osm-seed/blob/develop/images/web/start.sh#L45 and deploy, that should queue the emails and trigger send. That command starts the worker that looks for jobs submitted by the rails app. When an email request comes it's added to the worker queue. |
Thanks, @geohacker . That helped. I had to run the worker in the background since it doesn't exit and was blocking apache2 from starting. |
Glad that it helped! |
I am hoping to push some more changes to get email working in the Docker environment, but I haven't yet come to a solution. I am running on an AWS EC2 using Amazon SES. Here are the changes I made so far (branched from PR #186):
Results from testing the host connection (Amazon EC2):
Detailed changes:
The text was updated successfully, but these errors were encountered: