-
Notifications
You must be signed in to change notification settings - Fork 103
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
Email sender from env variable, small prod fixes #322
Conversation
- EMAIL_MARKETING_MODE=false | ||
- DEFAULT_QUEPID_SCORER=AP@10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find! That is bit embarrassing of a mistake that I made!
Looks like some unit test failiures, I can investigate tomorrow. Then we cut the Docker build! |
config/initializers/devise.rb
Outdated
@@ -14,7 +14,7 @@ | |||
# Configure the e-mail address which will be shown in Devise::Mailer, | |||
# note that it will be overwritten if you use your own mailer class | |||
# with default "from" parameter. | |||
config.mailer_sender = '[email protected]' | |||
config.mailer_sender = ENV['EMAIL_SENDER'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you followed the pattern of other ENV in this file, however I tend to put everything in customize_quepid.rb
file as an attribute.
Description
Take the sender of the email from an environment variable. Fix the wrong variable name in the docker-compose.prod.yaml file for default scorer.
Motivation and Context
The mail sender is now hardcoded to
[email protected]
. When you set up your own instance of Quepid, you should use your custom From email address.How Has This Been Tested?
Manually tested in the docker development environment
Types of changes
Checklist: