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.
Written by Trent Kocurek
Related protips
1 Response
Why not use killall
?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#