Browse Source

ses for production

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
ddcad1d815
  1. 1
      Gemfile
  2. 7
      Gemfile.lock
  3. 16
      config/environments/production.rb
  4. 9
      config/settings.sample.yml

1
Gemfile

@ -43,6 +43,7 @@ gem 'unicorn', '~> 4.6.3'
gem 'dalli', '~> 2.7.0' gem 'dalli', '~> 2.7.0'
gem 'json', '~> 1.8.0' gem 'json', '~> 1.8.0'
gem 'rails_admin', '~> 0.6.1' gem 'rails_admin', '~> 0.6.1'
gem 'aws-ses', '~> 0.5.0', :require => 'aws/ses'
# Assets # Assets
gem 'uglifier', '~> 2.4.0' gem 'uglifier', '~> 2.4.0'

7
Gemfile.lock

@ -61,6 +61,11 @@ GEM
addressable (2.3.5) addressable (2.3.5)
arel (4.0.1) arel (4.0.1)
atomic (1.1.14) atomic (1.1.14)
aws-ses (0.5.0)
builder
mail (> 2.2.5)
mime-types
xml-simple
bcrypt-ruby (3.1.2) bcrypt-ruby (3.1.2)
better_errors (1.1.0) better_errors (1.1.0)
coderay (>= 1.0.0) coderay (>= 1.0.0)
@ -298,6 +303,7 @@ GEM
rack (>= 1.0) rack (>= 1.0)
webshims-rails (1.12.2) webshims-rails (1.12.2)
rails (> 3.1.0) rails (> 3.1.0)
xml-simple (1.1.3)
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
@ -308,6 +314,7 @@ DEPENDENCIES
active-model-email-validator (~> 1.0.2) active-model-email-validator (~> 1.0.2)
active_scaffold (~> 3.4.0.rc)! active_scaffold (~> 3.4.0.rc)!
acts_as_nested_interval (~> 0.1.0) acts_as_nested_interval (~> 0.1.0)
aws-ses (~> 0.5.0)
better_errors (= 1.1.0) better_errors (= 1.1.0)
binding_of_caller (= 0.7.2) binding_of_caller (= 0.7.2)
bootstrap-sass (~> 3.1.0.1) bootstrap-sass (~> 3.1.0.1)

16
config/environments/production.rb

@ -69,13 +69,17 @@ Entrydns::Application.configure do
# Send deprecation notices to registered listeners # Send deprecation notices to registered listeners
config.active_support.deprecation = :notify config.active_support.deprecation = :notify
ActionMailer::Base.add_delivery_method :ses, AWS::SES::Base,
:access_key_id => Settings.ses_access_key_id,
:secret_access_key => Settings.ses_secret_access_key
config.action_mailer.default_url_options = {:host => 'entrydns.net'} config.action_mailer.default_url_options = {:host => 'entrydns.net'}
config.action_mailer.delivery_method = :smtp # config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { # config.action_mailer.smtp_settings = {
:address => "127.0.0.1", # :address => "127.0.0.1",
:port => 25, # :port => 25,
:domain => 'entrydns.net' # :domain => 'entrydns.net'
} # }
config.action_mailer.delivery_method = :ses
# Compress JavaScripts and CSS # Compress JavaScripts and CSS
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier

9
config/settings.sample.yml

@ -1,7 +1,7 @@
domain: entrydns.net domain: entrydns.net
# framework # framework
secret_key_base: 0ce1f02a4b3fc4d1a1c8d22973b21e8589e9314dc338294953f0b985e3f44f12c8af74f2d9ba6f7c7bdb736c4efc5ea3f8135e23b1a036d033cd23331383ac75 secret_key_base: [PLACEHOLDER]
# deployment # deployment
uses_proxy: true uses_proxy: true
@ -34,5 +34,8 @@ honeypot: userid
support_mail: "support@entrydns.net" support_mail: "support@entrydns.net"
news_link: "http://twitter.com/#!/entrydns" news_link: "http://twitter.com/#!/entrydns"
google_key: 105547277286.apps.googleusercontent.com google_key: [PLACEHOLDER]
google_secret: 7cIdW07UrWUmeb8QFYV4L63k google_secret: [PLACEHOLDER]
ses_access_key_id: [PLACEHOLDER]
ses_secret_access_key: [PLACEHOLDER]

Loading…
Cancel
Save