I already had MySQL installed, so I followed the instructions from fraiser.et and was able to get the 'Yes, It's Working' message to appear in my browser. However, the window with the WEBrick stays open for exactly two (2) web page 'opens', and then it terminates and I get a 'Page not found' error in my browser window if I try to open the page a 3rd time. This happens whether I open the browser 3 times, or I open the browser and then click "refresh" twice. (The page does open correctly, then refresh correctly the first time, but not the second time I click 'refresh'. MS Windows XP, MySQL 5.1, IE 7.0.
This is what the WEBrick cmd screen looks like after two browser opens, and then the window completely goes 'bye-bye' when I open it for the 3rd time:
C:\>cd \rubydev\hello
C:\rubydev\hello>ruby script/server
=> Booting WEBrick...
=> Rails 2.2.2 application started on 0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2008-12-06 19:47:46] INFO WEBrick 1.3.1
[2008-12-06 19:47:46] INFO ruby 1.8.6 (2007-09-24) [i386-mswin32]
[2008-12-06 19:47:46] INFO WEBrick::HTTPServer#start: pid=3864 port=3000
127.0.0.1 - - [06/Dec/2008:19:48:00 Central Standard Time] "GET /app/greeting HT
TP/1.1" 304 0
- -> /app/greeting
127.0.0.1 - - [06/Dec/2008:19:48:54 Central Standard Time] "GET /app/greeting HT
TP/1.1" 304 0
- -> /app/greeting
Any suggestions? Or is this what is supposed to happen?
|