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