mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
13 lines
471 B
Ruby
13 lines
471 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Load the rails application
|
|
require File.expand_path('../application', __FILE__)
|
|
|
|
# Initialize the rails application
|
|
Discourse::Application.initialize!
|
|
|
|
# When in "dev" mode, ensure we won't be sending any emails
|
|
if Rails.env.development? && ActionMailer::Base.smtp_settings != { address: "localhost", port: 1025 }
|
|
fail "In development mode, you should be using mailhog otherwise you might end up sending thousands of digest emails"
|
|
end
|