Kill Rails Server

Posted on

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}')


stop ruby
stop foreman

Add to your bashrc or zshrc.

Leave a Reply

Your email address will not be published. Required fields are marked *