Project

General

Profile

Defect #10981 ยป environment.rb

environnement - William Piedfort, 2012-05-22 14:59

 
1
# Load the rails application
2
require File.expand_path('../application', __FILE__)
3

    
4
# Make sure there's no plugin in vendor/plugin before starting
5
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
6
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
7
  $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
8
    "Please, put your Redmine plugins in the `plugins` directory at the root of your " +
9
    "Redmine directory (#{File.join(Rails.root, "plugins")})"
10
  exit 1
11
end
12

    
13
# Turn off auto TLS for e-mail
14
ActionMailer::Base.smtp_settings[:enable_starttls_auto] = false
15
ActionMailer::Base.smtp_settings[:openssl_verify_mode] = false
16

    
17
# Initialize the rails application
18
RedmineApp::Application.initialize!
    (1-1/1)