.
This commit is contained in:
parent
1e2aecc21c
commit
ab8412772e
5 changed files with 40 additions and 5 deletions
|
@ -76,7 +76,7 @@ Rails.application.configure do
|
|||
# Uncomment if you wish to allow Action Cable access from any origin.
|
||||
# config.action_cable.disable_request_forgery_protection = true
|
||||
|
||||
config.action_mailer.default_url_options = {host: 'localhost', port: 3000}
|
||||
config.action_mailer.default_url_options = {host: 'dev.j4.pm'}
|
||||
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: ENV['MAILER_ADDRESS'],
|
||||
|
|
|
@ -117,4 +117,15 @@ Rails.application.configure do
|
|||
# config.active_record.database_selector = { delay: 2.seconds }
|
||||
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
||||
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
||||
config.action_mailer.default_url_options = {host: 'UNSET.j4.pm'}
|
||||
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: ENV['MAILER_ADDRESS'],
|
||||
port: 587,
|
||||
domain: ENV['MAILER_DOMAIN'],
|
||||
user_name: ENV['MAILER_USERNAME'],
|
||||
password: ENV['MAILER_PASSWORD'],
|
||||
authentication: 'plain',
|
||||
enable_starttls_auto: true,
|
||||
}
|
||||
end
|
||||
|
|
|
@ -57,4 +57,15 @@ Rails.application.configure do
|
|||
|
||||
# Annotate rendered view with file names.
|
||||
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||
config.action_mailer.default_url_options = {host: 'dev.j4.pm'}
|
||||
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: ENV['MAILER_ADDRESS'],
|
||||
port: 587,
|
||||
domain: ENV['MAILER_DOMAIN'],
|
||||
user_name: ENV['MAILER_USERNAME'],
|
||||
password: ENV['MAILER_PASSWORD'],
|
||||
authentication: 'plain',
|
||||
enable_starttls_auto: true,
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue