I recently downloaded and extracted Instant Rails v1.4 on my Win XP sp1
machine. After changing and saving the windows host file and starting
the cookbook app with Mongrel, browsing to www.mycookbook.com does not
work. With Mozilla it displays ‘redirecting to cookbook…’ but never
loads. It is finding the index.html in the cookbook/public dir, but the
redirect to ‘recipe/list’ never returns. IE did not work either. I
tried the run → ‘netsh winsock reset’ solution but no luck. Anyone
have any ideas? I’m sure I’m missing something simple but after a day
of debugging I’m out of ideas. Thanks in advance!
After changing and saving the windows host file
and starting the cookbook app with Mongrel,
< browsing to www.mycookbook.com does not
work.
For starters, let’s try something a little more direct in order to
narrow
down the problem. Don’t start mongrel from the IR manager. Open a
command
window from IR manager, cd into the cookbook directory, and then start
mongrel manually. Make note of what ip address and port it starts on.
I’m
still working on the 1.3 release and starting mongrel manually brings it
up
on 3000. I think it starts on 3001 now (by default) through IR manager.
At
any rate, once it starts, open your browser using http://127.0.0.1:3000
(or
whatever combination mongrel tells you it’s using). Let us know what
happens.
After starting mongrel from the command line I get:
C:\InstantRails\rails_apps\cookbook>mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment …
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel available at 0.0.0.0:3000
** Use CTRL-C to stop.
Browsing to http://127.0.0.1:3000 leads to the same redirect hang. In
the console I see:
One thing that looks suspicious to me is that
these files in my /cookbook/public/ dir don’t
have the correct path on the first line of the file:
When you unzipped IR did you, from the File Manager, start
InstantRails.exe
and get a dialog saying IR had moved and was going to be configured for
its
new location? That’s where the paths should get set.
I did get that dialog and I clicked ‘yes’. When I look at say
spache/conf/httpd.conf I see the correct path was inserted. Could it be
that not all my paths were set correctly? Do you know which files get
updated when you first launch IR?
Thanks,
Joe
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.