Commit f297f62243fc7204137ed8b1cf9f35a108b53162
Exists in
master
and in
1 other branch
Merge pull request #35 from openteam/heroku-and-default_url_options
setting default_url_options[:host] in heroku
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
config/environments/production.rb
... | ... | @@ -37,6 +37,9 @@ Errbit::Application.configure do |
37 | 37 | # Disable delivery errors, bad email addresses will be ignored |
38 | 38 | # config.action_mailer.raise_delivery_errors = false |
39 | 39 | |
40 | + # Set default host for ActionMailer links | |
41 | + config.action_mailer.default_url_options = { :host => ENV['ERRBIT_HOST'] } if ENV['ERRBIT_HOST'] | |
42 | + | |
40 | 43 | # Enable threaded mode |
41 | 44 | # config.threadsafe! |
42 | 45 | ... | ... |