Skip to content

Commit

Permalink
Fix secrets so that they use Sendgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcasals committed Jan 16, 2020
1 parent d8f7002 commit 84fcf67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/generators/heroku_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ def enable_sentry_for_production
gsub_file("config/secrets.yml", "smtp_authentication: \"plain\"", <<-SENTRY_DEFAULT_PROD.chomp)
smtp_authentication: "plain"
sentry_enabled: true
email: "<%= ENV["EMAIL"] %>"
sendgrid: <%= !ENV["SENDGRID_USERNAME"].blank? %>
smtp_username: <%= ENV["SMTP_USERNAME"] || ENV["SENDGRID_USERNAME"] %>
smtp_password: <%= ENV["SMTP_PASSWORD"] || ENV["SENDGRID_PASSWORD"] %>
smtp_address: <%= ENV["SMTP_ADDRESS"] || "smtp.sendgrid.net" %>
smtp_domain: <%= ENV["SMTP_DOMAIN"] || "heroku.com" %>
SENTRY_DEFAULT_PROD
end

Expand Down

0 comments on commit 84fcf67

Please sign in to comment.