Skip to content

Instantly share code, notes, and snippets.

@StevenBlack
Created December 15, 2012 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StevenBlack/4297793 to your computer and use it in GitHub Desktop.
Save StevenBlack/4297793 to your computer and use it in GitHub Desktop.
Create aliases to kill and reset Rails
# 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