1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

ip binding was broken in mongrel_service, instead of :host, :address was passed, fixed.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@358 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
luislavena 2006-10-14 02:08:19 +00:00
parent af7c7e3955
commit 0b191d85fd

View file

@ -98,7 +98,7 @@ end
OPTIONS = {
:environment => ENV['RAILS_ENV'] || "development",
:port => 3000,
:address => "0.0.0.0",
:host => "0.0.0.0",
:log_file => "log/mongrel.log",
:pid_file => "log/mongrel.pid",
:num_procs => 1024,
@ -116,7 +116,7 @@ OPTIONS = {
ARGV.options do |opts|
opts.on('-e', '--environment ENV', "Rails environment to run as") { |OPTIONS[:environment]| }
opts.on('-p', '--port PORT', "Which port to bind to") { |OPTIONS[:port]| }
opts.on('-a', '--address ADDR', "Address to bind to") { |OPTIONS[:address]| }
opts.on('-a', '--address ADDR', "Address to bind to") { |OPTIONS[:host]| }
opts.on('-l', '--log FILE', "Where to write log messages") { |OPTIONS[:log_file]| }
opts.on('-P', '--pid FILE', "Where to write the PID") { |OPTIONS[:pid_file]| }
opts.on('-n', '--num-procs INT', "Number of processors active before clients denied") { |OPTIONS[:num_procs]| }