This adds ADMIN_EMAIL for those places in the code where godwin's email address was hardcoded.
This commit is contained in:
parent
349a641dfa
commit
cdddb0dc7a
@ -213,7 +213,7 @@ class ApplicationController < BaseController
|
||||
end
|
||||
|
||||
def contact_send
|
||||
email_list = ['Godwin <goodgodwin@hotmail.com>']
|
||||
email_list = [ENV['ADMIN_EMAIL']]
|
||||
|
||||
if params[:reason] == 'conference' && logged_in?
|
||||
|
||||
|
@ -163,12 +163,12 @@ class UserMailer < ActionMailer::Base
|
||||
@request = request
|
||||
@params = params
|
||||
|
||||
mail to: 'goodgodwin@hotmail.com', subject: clean_subject("Details for: \"#{subject}\"")
|
||||
mail to: ENV['ADMIN_EMAIL'], 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")
|
||||
mail to: ENV['ADMIN_EMAIL'], subject: clean_subject("Deployment to #{environment} complete")
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -58,6 +58,7 @@ services:
|
||||
- SMTP_USER_NAME=${SMTP_USER_NAME:-info@bikebike.org}
|
||||
- SMTP_PASSWORD=${SMTP_PASSWORD:-fake}
|
||||
- SMTP_SSL=${SMTP_SSL:-false}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-info@bikebike.org}
|
||||
- DEFAULT_URL=${DEFAULT_URL:-bikebike.org}
|
||||
volumes:
|
||||
- bikebikebike:/app/BikeBike
|
||||
|
Loading…
x
Reference in New Issue
Block a user