Created
December 15, 2012 18:17
-
-
Save StevenBlack/4297793 to your computer and use it in GitHub Desktop.
Create aliases to kill and reset Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from http://snippets.dzone.com/posts/show/5002 | |
alias dierails='ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -KILL $1' | |
alias resetrails='ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -HUP $1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment