Hi. My 1st post! Been trying to get Ruby & Rails working on a windows machine for most of yesterday. Gave up after not being able to get IIS to bring up a Rails page on localhost. So InstantRails seemed like the way forward. Got it installed ok, but I cant get it to serve Rails pages, specifically the cookbook app .. have gone through the instructions, and put the index.html from the cookbook app folder into the www folder. It says: The requested URL /recipe/list was not found on this server. (after loading http://www.railscookbook.com which redirects to http://www.railscookbook.com/recipe/list) If i try http://www.railscookbook.com:3001 it just loads forever. This is all on Firefox. Thanks in advance Adam
Curt Hibbs
2006-Oct-03 18:14 UTC
[Instantrails-users] problems getting InstantRails working
On 10/3/06, Adam <adam at prettystudio.co.uk> wrote:> > Hi. My 1st post! > > Been trying to get Ruby & Rails working on a windows machine for most of > yesterday. Gave up after not being able to get IIS to bring up a Rails > page on localhost. > > So InstantRails seemed like the way forward. Got it installed ok, but I > cant get it to serve Rails pages, specifically the cookbook app .. have > gone through the instructions, and put the index.html from the cookbook > app folder into the www folder. It says: > > The requested URL /recipe/list was not found on this server. > > (after loading http://www.railscookbook.com which redirects to > http://www.railscookbook.com/recipe/list) > > If i try http://www.railscookbook.com:3001 it just loads forever. > > This is all on Firefox. > > Thanks in advance > Adam >Are you using the newly released Instant Rails 1.4 preview1? If not, go download and install it. Next, start the cookbook app by: - Select "Rails Applications > Manage Rails Applications..." - Check the checkbox next to the cookbook app - Press the "Start with Mongrel" button. You should be able to browse to: http://localhost:3001/ Assuming that the above worked, the apache config file already has a virtual host directive that will serve up the cookbook using the named host url: http://www.mycookbook.com/ But you first must edit you Windows HOSTS file to add this domain name so that your local machine can fake itself into thinking that your machine is " www.mycookbook.com": - Select "Configure > Windows hosts file" - Add a line at the end that says "127.0.0.1 www.mycookbook.com" You should now be able to browse to: http://www.mycookbook.com/ WARNING: This will not work if you have your browser connection set to use a proxy server. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20061003/8473cca2/attachment.html
William (Bill) Froelich
2006-Oct-03 18:23 UTC
[Instantrails-users] problems getting InstantRails working
> -----Original Message----- > Hi. My 1st post! > > Been trying to get Ruby & Rails working on a windows machine > for most of yesterday. Gave up after not being able to get > IIS to bring up a Rails page on localhost. > > So InstantRails seemed like the way forward. Got it installed > ok, but I cant get it to serve Rails pages, specifically the > cookbook app .. have gone through the instructions, and put > the index.html from the cookbook app folder into the www > folder. It says: > > The requested URL /recipe/list was not found on this server. > > (after loading http://www.railscookbook.com which redirects to > http://www.railscookbook.com/recipe/list)It sounds like you are trying to have IIS serve up your Rails app. Out of the box InstantRails is configured to use apache for serving the apps. I suspect that there may be a port conflict between Apache and IIS on port 80. I would try shutting down IIS and following the InstantRails instructions to confirm that the IR setup is working as expected. Then you can decide on how to move forward with IIS. I recall from others posts to the main Rails list that getting IIS working can be challenging.> If i try http://www.railscookbook.com:3001 it just loads forever. > > This is all on Firefox. > > Thanks in advance > AdamThis is typically a development URL that would be used with the dev web server. You can test this by going to the cookbook app directory and starting Webrick from a command prompt. c:\InstantRails-1.3\rails_apps\cookbook>ruby script/server You should see output like the following => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2006-10-03 13:19:49] INFO WEBrick 1.3.1 [2006-10-03 13:19:49] INFO ruby 1.8.4 (2005-12-24) [i386-mswin32] [2006-10-03 13:19:49] INFO WEBrick::HTTPServer#start: pid=13148 port=3000 Then you can go to http://www.railscookbook.com:3000 and it should load up as expected (assuming you made the entry in your local hosts file). What I typically use is http://localhost:3000 for my development testing Let us know if this works or what results you get and we can try troubleshooting more. Good luck and welcome to Rails! --Bill
Bill Walton
2006-Oct-03 18:57 UTC
[Instantrails-users] problems getting InstantRails working
Adam wrote:> Hi. My 1st post!Welcome!> So InstantRails seemed like the way forward.Absolutely!> Got it installed ok, but I > cant get it to serve Rails pages, specifically the cookbook app ..Probably not ok then ;-)> have gone through the instructions,Which ones, exactly?> If i try http://www.railscookbook.com:3001 it just loads forever.Make sure your Windows Hosts file has an entry for localhost at 127.0.0.0. Then, using the IR Manager, start the app using WEBrick (not Apache for this). Then try http://localhost:3000. hth, Bill
Tim Uckun
2006-Oct-03 19:38 UTC
[Instantrails-users] problems getting InstantRails working
Did you modify your hosts file? On 10/4/06, Adam <adam at prettystudio.co.uk> wrote:> Hi. My 1st post! > > Been trying to get Ruby & Rails working on a windows machine for most of > yesterday. Gave up after not being able to get IIS to bring up a Rails > page on localhost. > > So InstantRails seemed like the way forward. Got it installed ok, but I > cant get it to serve Rails pages, specifically the cookbook app .. have > gone through the instructions, and put the index.html from the cookbook > app folder into the www folder. It says: > > The requested URL /recipe/list was not found on this server. > > (after loading http://www.railscookbook.com which redirects to > http://www.railscookbook.com/recipe/list) > > If i try http://www.railscookbook.com:3001 it just loads forever. > > This is all on Firefox. > > Thanks in advance > Adam > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >
David Morton
2006-Oct-04 03:54 UTC
[Instantrails-users] problems getting InstantRails working
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 3, 2006, at 10:21 AM, Adam wrote:> gone through the instructions, and put the index.html from the > cookbook > app folder into the www folder. It says: >What instructions say to do that??? David Morton Maia Mailguard http://www.maiamailguard.com mortonda at dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFIzCTUy30ODPkzl0RAqdmAJ9dS45a67keGEhElTYx6bkGPQ1KewCgs7dw adTma6ibFHjNgrRRI7rNfkQ=hnkS -----END PGP SIGNATURE-----
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Curt Hibbs wrote: <blockquote cite="mid31d15f490610031114h793fef04jc2ad15dd02807831@mail.gmail.com" type="cite">On 10/3/06, <b class="gmail_sendername">Adam</b> <<a href="mailto:adam@prettystudio.co.uk">adam@prettystudio.co.uk</a>> wrote: <div><span class="gmail_quote"></span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi. My 1st post!<br> <br> Been trying to get Ruby & Rails working on a windows machine for most of<br> yesterday. Gave up after not being able to get IIS to bring up a Rails<br> page on localhost.<br> <br> So InstantRails seemed like the way forward. Got it installed ok, but I <br> cant get it to serve Rails pages, specifically the cookbook app .. have<br> gone through the instructions, and put the index.html from the cookbook<br> app folder into the www folder. It says:<br> <br> The requested URL /recipe/list was not found on this server. <br> <br> (after loading <a href="http://www.railscookbook.com">http://www.railscookbook.com</a> which redirects to<br> <a href="http://www.railscookbook.com/recipe/list">http://www.railscookbook.com/recipe/list</a>)<br> <br> If i try <a href="http://www.railscookbook.com:3001">http://www.railscookbook.com:3001</a> it just loads forever.<br> <br> This is all on Firefox.<br> <br> Thanks in advance<br> Adam<br> </blockquote> </div> <br> Are you using the newly released Instant Rails 1.4 preview1? If not, go download and install it.<br> <br> Next, start the cookbook app by:<br> <ul> <li>Select "Rails Applications > Manage Rails Applications..."</li> <li>Check the checkbox next to the cookbook app </li> <li>Press the "Start with Mongrel" button.</li> </ul> You should be able to browse to:<br> <br> <a href="http://localhost:3001/">http://localhost:3001/</a><br> </blockquote> <br> This is where it goes wrong... just get endless loading. <br> I''ve tried looking for another Apache instance running, and made sure IIS is off. <br> <br> Any further help much appreciated!<br> Thanks<br> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Curt Hibbs wrote: <blockquote cite="mid31d15f490610040535i741dad2cs8e37829cdc5d4f67@mail.gmail.com" type="cite">On 10/4/06, <b class="gmail_sendername">Adam</b> <<a href="mailto:adam@prettystudio.co.uk">adam@prettystudio.co.uk</a>> wrote: <div><span class="gmail_quote"></span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div bgcolor="#ffffff" text="#000000"><span class="q">Curt Hibbs wrote: <blockquote cite="http://mid31d15f490610031114h793fef04jc2ad15dd02807831@mail.gmail.com" type="cite">On 10/3/06, <b class="gmail_sendername">Adam</b> <<a href="mailto:adam@prettystudio.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> adam@prettystudio.co.uk</a>> wrote: <div><span class="gmail_quote"></span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi. My 1st post!<br> <br> Been trying to get Ruby & Rails working on a windows machine for most of<br> yesterday. Gave up after not being able to get IIS to bring up a Rails<br> page on localhost.<br> <br> So InstantRails seemed like the way forward. Got it installed ok, but I <br> cant get it to serve Rails pages, specifically the cookbook app .. have<br> gone through the instructions, and put the index.html from the cookbook<br> app folder into the www folder. It says:<br> <br> The requested URL /recipe/list was not found on this server. <br> <br> (after loading <a href="http://www.railscookbook.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.railscookbook.com</a> which redirects to<br> <a href="http://www.railscookbook.com/recipe/list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.railscookbook.com/recipe/list</a>)<br> <br> If i try <a href="http://www.railscookbook.com:3001" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.railscookbook.com:3001</a> it just loads forever.<br> <br> This is all on Firefox.<br> <br> Thanks in advance<br> Adam<br> </blockquote> </div> <br> Are you using the newly released Instant Rails 1.4 preview1? If not, go download and install it.<br> <br> Next, start the cookbook app by:<br> <ul> <li>Select "Rails Applications > Manage Rails Applications..."</li> <li>Check the checkbox next to the cookbook app </li> <li>Press the "Start with Mongrel" button.</li> </ul> You should be able to browse to:<br> <br> <a href="http://localhost:3001/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:3001/</a><br> </blockquote> </span><br> This is where it goes wrong... just get endless loading. <br> I''ve tried looking for another Apache instance running, and made sure IIS is off. <br> <br> Any further help much appreciated!<br> Thanks<br> </div> </blockquote> </div> <br> <br> At this point, Apache and IIS and not involved... you are connecting directly to the Mongrel server on port 3001.<br> <br> Take a look at you Mongrel console window to confirm that Mongrel is serving up the cookbook app on port 3001. Then try <a href="http://127.0.0.1:3001/">http://127.0.0.1:3001/</a> instead of localhost. <br> <br> When you do this Mongrel should write a line to its console window showing that it received a GET request. If this doesn''t happen, then something is interfering with your network connections. Shutdown all firewalls and try again. Failing that, scan you system for virus and other malware. Try it on another machine so that you can see what successful behavior looks like. <br> <br> Curt<br> </blockquote> <br> Thanks - what I get in the Mongrel console window is:<br> <br> ** Starting Mongrel listening at 0.0.0.0:3001<br> ** Starting Rails with development environment ...<br> ** Rails loaded.<br> ** Loading any Rails specific GemPlugins<br> ** Signals ready. INT => stop (no restart).<br> ** Mongrel available at 0.0.0.0:3001<br> ** Use CTRL-C to stop.<br> 127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET / HTTP/1.1"<br> 127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET /favicon.ico HTTP/1.1"<br> 127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET /recipe/list HTTP/1.1"<br> <br> <br> About to try it on another machine...<br> <br> Regards<br> Adam.<br> </body> </html>