[fix]Fix mailbot settings

This commit is contained in:
Jimmy 2021-04-13 18:26:38 +08:00
parent 1118c3cbcc
commit d2f1720d70
4 changed files with 6 additions and 7 deletions

View file

@ -72,10 +72,6 @@ module Osem
default_color: (ENV['DEFAULT_COLOR'] || '#0B3559') default_color: (ENV['DEFAULT_COLOR'] || '#0B3559')
} }
config.mailbot = {
ytlf_ticket_id: (ENV['YTLF_TICKET_ID'] || 50)
}
config.before_configuration do config.before_configuration do
env_file = File.join(Rails.root, 'config', 'local_env.yml') env_file = File.join(Rails.root, 'config', 'local_env.yml')
if File.exist?(env_file) if File.exist?(env_file)

View file

@ -44,8 +44,9 @@ Osem::Application.configure do
# Set the secret key base if it's not set via other means # Set the secret key base if it's not set via other means
config.secret_key_base ||= 'f4be765bc98e516de82ac01daa8f8aa11c5ca13cb6c911887851ac89457b6c0b056b2361a21b5c08926c9386e0f91eef84fc0b103d522bf00bc0c78ea8ce7c58' config.secret_key_base ||= 'f4be765bc98e516de82ac01daa8f8aa11c5ca13cb6c911887851ac89457b6c0b056b2361a21b5c08926c9386e0f91eef84fc0b103d522bf00bc0c78ea8ce7c58'
# Test email address # Test mailbot settings
config.mailbot = { config.mailbot = {
ytlf_ticket_id: 50
bcc_address: 'test@test.com' bcc_address: 'test@test.com'
} }

View file

@ -102,8 +102,9 @@ Osem::Application.configure do
# Set the secret_key_base from the env, if not set by any other means # Set the secret_key_base from the env, if not set by any other means
config.secret_key_base ||= ENV["SECRET_KEY_BASE"] config.secret_key_base ||= ENV["SECRET_KEY_BASE"]
# Set bcc email address # Mailbot settings
config.mailbot = { config.mailbot = {
ytlf_ticket_id: (ENV['YTLF_TICKET_ID'] || 50)
bcc_address: ENV['OSEM_MESSAGE_BCC_ADDRESS'] bcc_address: ENV['OSEM_MESSAGE_BCC_ADDRESS']
} }
end end

View file

@ -52,8 +52,9 @@ Osem::Application.configure do
ActiveSupport::Deprecation.silenced = true ActiveSupport::Deprecation.silenced = true
end end
# Test email address # Test mailbot settings
config.mailbot = { config.mailbot = {
ytlf_ticket_id: 50
bcc_address: 'test@test.com' bcc_address: 'test@test.com'
} }
end end