Generalized logs and mailer (#312)

This commit is contained in:
Jesus Federico
2018-10-26 11:59:49 -04:00
committed by GitHub
parent b8785a3bf8
commit 3b67ffee40
5 changed files with 33 additions and 23 deletions

View File

@ -54,8 +54,8 @@ Rails.application.configure do
# Use a different cache store in production.
# config.cache_store = :mem_cache_store
# Tell Action Mailer to use smtp server
config.action_mailer.delivery_method = :smtp
# Tell Action Mailer to use smtp server, if configured
config.action_mailer.delivery_method = ENV['SMTP_SERVER'].present? ? :smtp : :sendmail
ActionMailer::Base.smtp_settings = {
address: ENV['SMTP_SERVER'],