diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-06 20:37:49 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-06 20:37:49 +0000 |
commit | 9f3625dd0ae1691be3ea0b745a65149b9e4c2837 (patch) | |
tree | a324e178a265dbe4b84e7024fa8fe3a829636c7c | |
parent | 6a66f910a1dddfe8c7405fac586aba20346b38fe (diff) | |
download | rails-9f3625dd0ae1691be3ea0b745a65149b9e4c2837.tar.gz rails-9f3625dd0ae1691be3ea0b745a65149b9e4c2837.tar.bz2 rails-9f3625dd0ae1691be3ea0b745a65149b9e4c2837.zip |
Ensure the logger is initialized. Closes #5629.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/commands/servers/mongrel.rb | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 34cff52746..88ec145f83 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Ensure the logger is initialized. #5629 [mike@clarkware.com] + * Added Mongrel-spawning capabilities to script/process/spawner. Mongrel will be the default choice if installed, otherwise FCGI is tried [DHH]. Examples: spawner # starts instances on 8000, 8001, and 8002 using Mongrel if available diff --git a/railties/lib/commands/servers/mongrel.rb b/railties/lib/commands/servers/mongrel.rb index a110cac7c4..98441aca91 100644 --- a/railties/lib/commands/servers/mongrel.rb +++ b/railties/lib/commands/servers/mongrel.rb @@ -1,11 +1,14 @@ require 'rbconfig' require 'commands/servers/base' -unless defined?(Mongrel) +unless defined?(Mongrel) puts "PROBLEM: Mongrel is not available on your system (or not in your path)" exit 1 end +require 'initializer' +Rails::Initializer.run(:initialize_logger) + require 'optparse' detach = false |