Posted By

Epigene on 07/30/14


rails alias fish

Versions (?)

Fish alias for restarting Rails server

 / Published in: Bash


Aliases command "go!" to starting AND restarting rails server for a project from anywhere in the filesystem. Replace PROJECT_HOME with the path to your project.

Place in

  1. alias go!="kill (cat PROJECT_HOME/tmp/pids/; cd PROJECT_HOME; rails s"
  3. OR (a bit more versatile and dangerous; will kill ALL rails processes, beware)
  5. alias go!="kill (ps auxw | grep "ruby.*rails" | grep -v "grep" | awk '{print $2}'); cd PROJECT_HOME; rails s"

Report this snippet  

You need to login to post a comment.