Read more

How to kill a Rails server if you accidentally closed its RubyMine window

Klaus Weidinger
January 30, 2023Software engineer at makandra GmbH

RubyMine's terminal doesn't always terminate running processes when you close the whole RubyMine window. The most annoying case is when it leaves a dev server running that blocks port 3000. You can terminate such a dev server with this command:

lsof -t -i :3000 -s TCP:LISTEN | xargs kill -9
Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show snapshot

It might be worth it to add this to your bash aliases.

Posted by Klaus Weidinger to makandra dev (2023-01-30 15:16)