Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

obey address flag

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@807 19e92222-5c0b-0410-8929-a290d50e31e9
  • Loading branch information...
commit 2a7f00e80a61b00ab1994cf162ff03a6a7998225 1 parent 115ea67
evanweaver authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 bin/mongrel_rails
View
13 bin/mongrel_rails
@@ -4,11 +4,15 @@
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
# for more information.
-require 'rubygems'
require 'yaml'
+require 'etc'
+
+$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'mongrel'
require 'mongrel/rails'
-require 'etc'
+
+# require 'ruby-debug'
+# Debugger.start
module Mongrel
class Start < GemPlugin::Plugin "/commands"
@@ -174,15 +178,14 @@ module Mongrel
def config_keys
@config_keys ||=
- %w(host port cwd log_file pid_file environment docroot mime_map daemon debug includes config_script
- num_processors timeout throttle user group prefix)
+ %w(address host port cwd log_file pid_file environment docroot mime_map daemon debug includes config_script num_processors timeout throttle user group prefix)
end
def settings
config_keys.inject({}) do |hash, key|
value = self.instance_variable_get("@#{key}")
key = 'host' if key == 'address'
- hash[key.to_sym] = value
+ hash[key.to_sym] ||= value
hash
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.