How do you close the server that ruby uses?
| SitePoint Sponsor |





How do you close the server that ruby uses?
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
WEBrick? Close the command prompt window and the server will shut down. Or I believe pressing ctrl+C closes it from within the window.





Thank you![]()
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users





I didn't notice this line either the first few times I launched it.Code:c:\whatever>ruby script/server => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-09-25 21:10:28] INFO WEBrick 1.3.1 [2005-09-25 21:10:28] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] [2005-09-25 21:10:28] INFO WEBrick::HTTPServer#start: pid=6136 port=3000
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
Bookmarks