Sze C.
2010-Aug-24 16:19 UTC
Configuring the Server (Ruby on Rails: Up and Running 1st Edition)
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Shaffer
2010-Aug-24 18:34 UTC
Re: Configuring the Server (Ruby on Rails: Up and Running 1st Edition)
It''s probably not advisable to change script/server. You can change the port and IP address using command line parameters. --port to change the port --binding to change the IP address Or check out the help to see a list of all available options: # ruby script/server --help -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.