Archive for October, 2007

Installing and managing edge Rails

Great article here:

http://www.sitepoint.com/blogs/2006/07/11/installing-and-managing-edge-rails/

How to stop webrick from the command line

To create a bash file to stop webrick.

In a terminal type gedit stopWebrick and add the following to the contents of the file and save it.  Give the file execute permission with chmod of using the file properties in nautilus.

#!/bin/bash
kill -9 `ps -o pid,cmd --no-heading -p $(pgrep ruby) | grep script/server | awk '{print $1}'`

This will kill the first ruby process it finds running as script/srever

Run it as needed.