mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e2d4ebdea4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
16 lines
430 B
Ruby
16 lines
430 B
Ruby
unless defined?(Mongrel)
|
|
abort "PROBLEM: Mongrel is not available on your system (or not in your path)"
|
|
end
|
|
|
|
require 'rails/mongrel_server/commands'
|
|
|
|
GemPlugin::Manager.instance.load "rails::mongrel" => GemPlugin::INCLUDE, "rails" => GemPlugin::EXCLUDE
|
|
|
|
case ARGV[0] ||= 'start'
|
|
when 'start', 'stop', 'restart'
|
|
ARGV[0] = "rails::mongrelserver::#{ARGV[0]}"
|
|
end
|
|
|
|
if not Mongrel::Command::Registry.instance.run ARGV
|
|
exit 1
|
|
end
|