[fix]Fix mailbot settings
This commit is contained in:
parent
1118c3cbcc
commit
d2f1720d70
4 changed files with 6 additions and 7 deletions
|
|
@ -72,10 +72,6 @@ module Osem
|
|||
default_color: (ENV['DEFAULT_COLOR'] || '#0B3559')
|
||||
}
|
||||
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: (ENV['YTLF_TICKET_ID'] || 50)
|
||||
}
|
||||
|
||||
config.before_configuration do
|
||||
env_file = File.join(Rails.root, 'config', 'local_env.yml')
|
||||
if File.exist?(env_file)
|
||||
|
|
|
|||
|
|
@ -44,8 +44,9 @@ Osem::Application.configure do
|
|||
# Set the secret key base if it's not set via other means
|
||||
config.secret_key_base ||= 'f4be765bc98e516de82ac01daa8f8aa11c5ca13cb6c911887851ac89457b6c0b056b2361a21b5c08926c9386e0f91eef84fc0b103d522bf00bc0c78ea8ce7c58'
|
||||
|
||||
# Test email address
|
||||
# Test mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: 50
|
||||
bcc_address: 'test@test.com'
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -102,8 +102,9 @@ Osem::Application.configure do
|
|||
# Set the secret_key_base from the env, if not set by any other means
|
||||
config.secret_key_base ||= ENV["SECRET_KEY_BASE"]
|
||||
|
||||
# Set bcc email address
|
||||
# Mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: (ENV['YTLF_TICKET_ID'] || 50)
|
||||
bcc_address: ENV['OSEM_MESSAGE_BCC_ADDRESS']
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -52,8 +52,9 @@ Osem::Application.configure do
|
|||
ActiveSupport::Deprecation.silenced = true
|
||||
end
|
||||
|
||||
# Test email address
|
||||
# Test mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: 50
|
||||
bcc_address: 'test@test.com'
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue