Here's the script I use to start up my Rails editing environment. It assumes you are in the RAILS_ROOT folder, and you have textmate and mongrel.
kyle:~ kyle$ cat ~/bin/s
#!/bin/sh
killall ruby
mongrel_rails start -d
sleep 1
open http://localhost:3000/
sleep 1
mate .
Comments