From: Iain Barnett Date: 2010-06-28T02:44:18+09:00 Subject: Re: newbie - WEbrick, config/routes.rb and multiple instances --Apple-Mail-2-853225206 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Jun 2010, at 14:47, Hassan Schroeder wrote: >=20 > Yes to all of the above. You have 2 separate apps, so yes, you have > to start 2 servers to handle them. >=20 > You can run them simultaneously by configuring one to use a different > port. >=20 On 27 Jun 2010, at 14:47, Josh Cheek wrote: >=20 > When you do script/server, you can pass a port to run the application = on. >=20 > In one terminal: $ cd tickets && script/server > In another terminal $ cd events && script/server -p 3001 >=20 > Then in your browser, you can see tickets at localhost:3000/tickets > And you can see events at localhost:3001/events >=20 > By the way, check and make sure you read it correctly, because this is > almost certainly not what you want. Probably they wanted you to make = two > different scaffolds, not two different applications. Thanks for all the help. I had a look and the url's both use the same = port and nothing is mentioned about using other ports. I checked the = book's site for errata but didn't see anything. On 27 Jun 2010, at 14:49, Josh Cheek wrote: > On Sun, Jun 27, 2010 at 8:47 AM, Josh Cheek = wrote: >=20 >=20 > Oh, and this is a mailing list for the Ruby programming language, not = the > Ruby on Rails web framework. > You'll probably have more luck at > http://groups.google.com/group/rubyonrails-talk Ok, thanks very much for pointing that out. Iain= --Apple-Mail-2-853225206--