Sha256: 4dc42c7de2553e7d2a5133a08dbf2fbae094454a4e5efa8738f98992dba32234

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

sendgrid_config = <<SENDGRID

  # SendGrid config
  config.action_mailer.default_url_options = { host: ENV['CANONICAL_HOST'] }
  config.action_mailer.smtp_settings = {
    address:              'smtp.sendgrid.net',
    port:                 '587',
    authentication:       :plain,
    user_name:            ENV['SENDGRID_USERNAME'],
    password:             ENV['SENDGRID_PASSWORD'],
    domain:               'heroku.com',
    enable_starttls_auto: true
  }
SENDGRID

inject_into_file 'config/environments/production.rb', sendgrid_config, { before: /^end/, verbose: false }

git add: 'config/environments/production.rb'
git_commit 'Add sendgrid config.'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pah-0.0.15 lib/pah/partials/_sendgrid.rb
pah-0.0.14 lib/pah/partials/_sendgrid.rb