From: Shashank Date Date: 2006-02-19T04:56:30+09:00 Subject: Re: Changing port for WEBrick ??? --0-371521302-1140292574=:39048 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, "John N. Alegre" wrote: How can I change the port form 3000 to something else ... say 3020. I have tried putting server.port=3020 ----------------------------------- C:\_Rails\presentror>ruby script/server --help => Booting WEBrick... Usage: ruby server [options] -p, --port=port Runs Rails on the specified port. Default: 3000 -b, --binding=ip Binds Rails to the specified ip. Default: 0.0.0.0 -e, --environment=name Specifies the environment to run this server under (test/development/production). Default: development -m, --mime-types=filename Specifies an Apache style mime.types configuration file to be used for mime types Default: none -d, --daemon Make Rails run as a Daemon (only works if fork is available -- meaning on *nix). -c, --charset=charset Set default charset for output. Default: UTF-8 -h, --help Show this help message. C:\_Rails\presentror>ruby script/server --port=3020 => Booting WEBrick... => Rails application started on http://0.0.0.0:3020 => Ctrl-C to shutdown server; call with --help for options [2006-02-18 13:54:41] INFO WEBrick 1.3.1 [2006-02-18 13:54:41] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] [2006-02-18 13:54:41] INFO WEBrick::HTTPServer#start: pid=5948 port=3020 --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. --------------------------------- What are the most popular cars? Find out at Yahoo! Autos --0-371521302-1140292574=:39048--