From 6c1303eb8fd3841c5d9b5dc5f3e882e32f84fb09 Mon Sep 17 00:00:00 2001 From: Dmitry Lihachev Date: Tue, 24 May 2011 16:01:06 +0700 Subject: [PATCH] setting default_url_options[:host] in heroku --- config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 6c1ea4f..08526af 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -37,6 +37,9 @@ Errbit::Application.configure do # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false + # Set default host for ActionMailer links + config.action_mailer.default_url_options = { :host => ENV['ERRBIT_HOST'] } if ENV['ERRBIT_HOST'] + # Enable threaded mode # config.threadsafe! -- libgit2 0.21.2