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