WEBrick server hangs
Published April 28th, 2005 in GeneralIn playing with Ruby on Rails (on Mac OS X), this has happened to me several times. I’ll shut down the terminal, but WEBrick keeps going, serving up pages in the browser. I have no clue why this happens (I’m totally new to Rails), but it was very frustrating, since it would prevent me from restarting WEBrick (and refreshing the DB config options).
Anyway, finally found a fix, so I thought I’d share it. Try:
sudo killall ruby
That did the trick for me. It shut down the old instance of WEBrick and let me start up a new one. Yay—790cc98e6fb7c984b9e305aaa05c77ea—>
Search
Sponsored links:
Oh man, you just saved me a huge headache. I just hit the same snag you hit a few months ago. Thanks for posting, the trick worked. You saved this newb some fustration!
How did you ever get WEBrick working on OS X? I installed ruby, gems and rails but when I go to do ruby script/server, I get the error:
ruby: No such file or directory—script/server (LoadError)
I got it…was just being dumb. Thanks!