DEV Community

Discussion on: Stopping a runaway Rails server

Collapse
 
hopsoft profile image
Hopsoft

I use an alias for kill-rails

kill-rails: aliased to lsof -t -i tcp:3000 | xargs kill -KILL

This isn't quite the same as it will kill anything running on port 3000 which is great if you work on multiple Rails projects across tmux sessions and then forget which one is actually running.