Skip to content

Commit

Permalink
add configuration for server mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
korotindev committed Jul 15, 2015
1 parent 8ad6362 commit 3115232
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true

config.
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# Add `rack-cache` to your Gemfile before enabling this.
# For large-scale production use, consider using a caching reverse proxy like
Expand All @@ -28,7 +28,19 @@
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass

config.action_mailer.raise_delivery_errors = true
# output to tmp/mails directory
config.action_mailer.delivery_method = :sendmail
config.action_mailer.perform_deliveries = true
# and to specify output location
config.action_mailer.file_settings = { :location => Rails.root.join('tmp/mail') }
# Do not fallback to assets pipeline if a precompiled asset is missed.

config.action_mailer.sendmail_settings = {
location: '/usr/bin/mail',
arguments: '-i -t'
}

config.assets.compile = false

# Asset digests allow you to set far-future HTTP expiration dates on all assets,
Expand Down

0 comments on commit 3115232

Please sign in to comment.