How to stop webrick from the command line
Rails, Ruby October 10th, 2007To 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.
April 22nd, 2008 at 4:59 pm
can I run both PHPBB3 and ruby simultaneously on single server
April 22nd, 2008 at 5:06 pm
no reason why not, pretty sure the web server filters on file extension, and forwards either to ruby or PHP.
If you want a good hosting provider that supports php & ruby / rails apps, see netOxide.co.uk. Bloody cheap, great badwidth deals.
May 7th, 2009 at 6:33 am
I think there’s a mistake in your command line: the single quote before the {print must be a forward quote like this:
awk ‘{print $1}’
Yves
May 7th, 2009 at 6:35 am
Aarg. That’s the bloody blog tool that changes these quotes… be warned … both quotes need to be simple, forward, quotes