Last Updated: February 25, 2016
·
860
· tkocurek

Kill Rails Server

If you have rails server running locally and need to kill it fast, I use this function:

stop() {
    kill -9 $(ps ax | grep $1 | grep -v "grep" | awk '{print $1}')
}

Usage:

stop ruby
stop foreman

Add to your bashrc or zshrc.

1 Response
Add your response

Why not use killall?

over 1 year ago ·