mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Attempt to add env fallbacks for smtp to fix build
This commit is contained in:
parent
f71e4215bc
commit
130767d569
1 changed files with 5 additions and 4 deletions
|
|
@ -58,10 +58,11 @@ Rails.application.configure do
|
|||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
user_name: ENV.fetch("SMTP_USER_NAME"),
|
||||
password: ENV.fetch("SMTP_PASSWORD"),
|
||||
address: ENV.fetch("SMTP_ADDRESS"),
|
||||
port: ENV.fetch("SMTP_PORT"),
|
||||
# provide fallbacks during build time
|
||||
user_name: ENV.fetch("SMTP_USER_NAME") || "SMTP_USER_NAME",
|
||||
password: ENV.fetch("SMTP_PASSWORD") || "SMTP_PASSWORD",
|
||||
address: ENV.fetch("SMTP_ADDRESS") || "SMTP_ADDRESS",
|
||||
port: ENV.fetch("SMTP_PORT") || 587,
|
||||
authentication: :plain,
|
||||
enable_starttls_auto: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue