2019-03-17 02:04:38 +00:00
|
|
|
# frozen_string_literal: true
|
2019-03-15 01:32:57 +00:00
|
|
|
|
2014-10-22 17:37:16 +00:00
|
|
|
# Load the Rails application
|
2012-04-25 17:17:49 +00:00
|
|
|
require File.expand_path('../application', __FILE__)
|
2006-06-28 18:11:03 +00:00
|
|
|
|
2012-05-01 10:42:25 +00:00
|
|
|
# Make sure there's no plugin in vendor/plugin before starting
|
|
|
|
|
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
|
|
|
|
|
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
|
2019-03-17 02:04:38 +00:00
|
|
|
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " \
|
|
|
|
|
"Please, put your Redmine plugins in the `plugins` directory at the root of your " \
|
2012-05-01 10:42:25 +00:00
|
|
|
"Redmine directory (#{File.join(Rails.root, "plugins")})"
|
|
|
|
|
exit 1
|
|
|
|
|
end
|
|
|
|
|
|
2014-10-22 17:37:16 +00:00
|
|
|
# Initialize the Rails application
|
|
|
|
|
Rails.application.initialize!
|