List Info

Thread: problems getting InstantRails working




problems getting InstantRails working
user name
2006-10-04 12:45:34
Curt Hibbs wrote:
mail.gmail.com" type="cite">On 10/4/06, Adam <prettystudio.co.uk">adamprettystudio.co.uk&gt; wrote:
Curt Hibbs wrote:
mail.gmail.com" type="cite">On 10/3/06, Adam <prettystudio.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> adamprettystudio.co.uk&gt; 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/

This is where it goes wrong... just get endless loading.&nbsp;
I've tried looking for another Apache instance running, and made sure IIS is off.

Any further help much appreciated!
Thanks


At this point, Apache and IIS and not involved... you are connecting directly to the Mongrel server on port 3001.

Take a look at you Mongrel console window to confirm that Mongrel is serving up the cookbook app on port 3001. Then try http://127.0.0.1:3001/ instead of localhost.

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.

Curt

Thanks - what I get in the Mongrel console window is:

** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with development environment ...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready.&nbsp; INT => stop (no restart).
** Mongrel available at 0.0.0.0:3001
** Use CTRL-C to stop.
127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET / HTTP/1.1"
127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET /favicon.ico HTTP/1.1"
127.0.0.1 - [Wed, 04 Oct 2006 10:19:00 GMT] "GET /recipe/list HTTP/1.1"


About to try it on another machine...

Regards
Adam.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )