2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-03-21 10:28:52 -04:00
|
|
|
# Load the Rails application.
|
|
|
|
require_relative "application"
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2022-03-21 10:28:52 -04:00
|
|
|
# Initialize the Rails application.
|
|
|
|
Rails.application.initialize!
|
2016-06-03 11:39:54 -04:00
|
|
|
|
|
|
|
# When in "dev" mode, ensure we won't be sending any emails
|
2022-03-21 10:28:52 -04:00
|
|
|
if Rails.env.development? && ActionMailer::Base.smtp_settings.slice(:address, :port) != { address: "localhost", port: 1025 }
|
2021-10-05 06:18:06 -04:00
|
|
|
fail "In development mode, you should be using mailhog otherwise you might end up sending thousands of digest emails"
|
2016-06-03 11:39:54 -04:00
|
|
|
end
|