Ruby on Rails Tuesday, August 24, 2010

Hi everybody,
I am trying to configure the server so that WEBrick runs on a
different Port and IP Address.
The Book Ruby on Rails: Up and Running 1st Edition says to change
script/server

OPTIONS = {
:port => 3030,
:ip => "0.0.0.0",
:environment => "development",
:server_root => File.expand_path(File.dirname(__FILE__) + "/../
public/"\
),
:server_type => WEBrick::SimpleServer
}

What I see in script/server is:

require File.expand_path('../../config/boot', __FILE__)
require 'commands/server'

How do I configure the server?

I know there is a 2nd Edition of Ruby on Rails: Up and Running but I
only have the 1st Edition for now.

Thanks,

Sze

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment