Fixed failing tests and added deployment complete email

This commit is contained in:
Godwin
2017-06-11 17:32:43 -07:00
parent eb4b3c44d6
commit e5ecf221f6
7 changed files with 63 additions and 40 deletions
+5
View File
@@ -148,6 +148,11 @@ class UserMailer < ActionMailer::Base
mail to: 'goodgodwin@hotmail.com', subject: clean_subject("Details for: \"#{subject}\"")
end
def server_startup(environment)
@environment = environment
mail to: 'goodgodwin@hotmail.com', subject: clean_subject("Deployment to #{environment} complete")
end
private
def set_host(*args)
if Rails.env.production?