Forum Moderators: phranque

Message Too Old, No Replies

ruby on rails issue

         

FiRe

11:01 pm on Nov 26, 2006 (gmt 0)

10+ Year Member



I have ror on my windows xp machine (development mode). When I use the "ruby script/server" command in DOS it boots webrick but does it like this:

=> Booting WEBrick...
=> Rails application started on [0.0.0.0:3000...]
=> Ctrl-C to shutdown server; call with --help for options
[2006-11-26 22:56:22] INFO WEBrick 1.3.1
[2006-11-26 22:56:22] INFO ruby 1.8.5 (2006-08-25) [i386-mswin32]
[2006-11-26 22:56:22] INFO WEBrick::HTTPServer#start: pid=5756 port=3000
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET / HTTP/1.1" 200 7552

- -> /
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET /javascripts/prototy
pe.js HTTP/1.1" 200 55149
[localhost:3000...] -> /javascripts/prototype.js
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET /javascripts/effects
.js HTTP/1.1" 200 32871
[localhost:3000...] -> /javascripts/effects.js
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET /images/rails.png HT
TP/1.1" 200 1787
[localhost:3000...] -> /images/rails.png
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET /favicon.ico HTTP/1.
1" 200 0
- -> /favicon.ico
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] "GET /favicon.ico HTTP/1.
1" 200 0
- -> /favicon.ico
127.0.0.1 - - [26/Nov/2006:22:56:37 GMT Standard Time] "GET /rails/info/properti
es HTTP/1.1" 200 886
[localhost:3000...] -> /rails/info/properties

It seems to be constantly logging the actions of my web browser! Because of this I cannot enter anymore commands into DOS without closing it and reopening, which stops WEBrick! Any suggestions?

encyclo

11:34 pm on Nov 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know (I haven't used Windows or DOS for several years) you can't run a DOS command in the background like you can in Unix with the ampersand.

Are you able to create a simple batch file to run the command? Then you can just click on the .bat file and free up your DOS prompt for other commands.

FiRe

9:45 am on Nov 27, 2006 (gmt 0)

10+ Year Member



Well technically I could yes, but thats a pain in the @$$. Actually I could make a VB program or something to automatically build and run a batch file.

Do you just put commands in a bat file on new lines? Like this:

cd C:\ruby
ruby script/server

?