Output of "ruby script/server" command

From DevchixWiki

Jump to: navigation, search
C:\Documents and Settings\smei\Desktop\ruby_on_rails\test_app>ruby script/server
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-05-23 18:47:39] INFO  WEBrick 1.3.1
[2009-05-23 18:47:39] INFO  ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2009-05-23 18:47:39] INFO  WEBrick::HTTPServer#start: pid=2640 port=3000

After this output appears, the process will not end and return your prompt until you kill it with control-C. For now, leave it active while you continue with the next step, testing the running server with your browser.

Note, this command may run with Mongrel instead of WEBrick, with slightly different output (lacking the "INFO" lines shown above). The following was taken from Mac OS X Tiger:

sharon-minsuks-powerbook-g4-15:~/Desktop/ruby_on_rails/test_app sharonminsuk$ ruby script/server
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server