Kaynağa Gözat

Set email config

master
Adrian Short 11 yıl önce
ebeveyn
işleme
0cde4b1889
3 değiştirilmiş dosya ile 15 ekleme ve 10 silme
  1. +0
    -10
      config/environment.rb
  2. +2
    -0
      config/environments/development.rb
  3. +13
    -0
      config/environments/production.rb

+ 0
- 10
config/environment.rb Dosyayı Görüntüle

@@ -4,13 +4,3 @@ require File.expand_path('../application', __FILE__)
# Initialize the rails application
Apollo::Application.initialize!

# SendGrid config for Heroku Cedar stack
ActionMailer::Base.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
}

+ 2
- 0
config/environments/development.rb Dosyayı Görüntüle

@@ -1,6 +1,8 @@
Apollo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

config.action_mailer.default_url_options = { :host => 'localhost:3000' }

# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.


+ 13
- 0
config/environments/production.rb Dosyayı Görüntüle

@@ -1,5 +1,18 @@
Apollo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
config.action_mailer.default_url_options = { :host => 'tal-apollo-staging.herokuapp.com' }
# SendGrid config for Heroku Cedar stack
ActionMailer::Base.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
}

# Code is not reloaded between requests
config.cache_classes = true


Yükleniyor…
İptal
Kaydet