views:

97

answers:

1

I'm running a rails app with webrick. When I stop the server with Cntrl-C, I still then have to quit and restart Terminal before I can restart the server b/c the Ruby process is still running. Is there a way to get around this?

I get: [2010-08-29 00:00:27] INFO WEBrick 1.3.1 [2010-08-29 00:00:27] INFO ruby 1.9.2 (2010-08-18) [x86_64-darwin10.4.0] [2010-08-29 00:00:27] WARN TCPServer Error: Address already in use - bind(2) Exiting ....rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)

A: 

Shouldn't you be using Ctrl+C and not Cmd?

Amit
oops, fixed typo
99miles
Close, I was doing Ctrl+Z out of habit and not realizing it.
99miles