瀏覽代碼

Set email config

master
Adrian Short 11 年之前
父節點
當前提交
0cde4b1889
共有 3 個檔案被更改,包括 15 行新增10 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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


Loading…
取消
儲存