Skip to content
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

Merged
merged 8 commits into from
Apr 16, 2021

Conversation

slawmac
Copy link
Contributor

@slawmac slawmac commented Apr 15, 2021

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

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves existing functionality)
  • [] New feature (non-breaking change which adds new functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • [] I have updated the documentation accordingly.
  • [] I have read the CONTRIBUTING document.
  • [] I have added tests to cover my changes.
  • [] All new and existing tests passed.

- EMAIL_MARKETING_MODE=false
- DEFAULT_QUEPID_SCORER=AP@10
Copy link
Member

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!

@epugh
Copy link
Member

epugh commented Apr 15, 2021

Looks like some unit test failiures, I can investigate tomorrow. Then we cut the Docker build!

@@ -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']
Copy link
Member

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.

@epugh epugh merged commit 521d874 into o19s:master Apr 16, 2021
@slawmac slawmac deleted the production_env_fixes branch April 16, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants