Mark Gandolfo's Blog

Restart Your Rails Server Within Textmate

Posted on December 19, 2009

I tend to find myself needing to restart my rails server in development mode quite often, and found that mongrel like passenger also restarts when tmp/restart.txt is present. So I created a simple command for Textmate which will easily restart the server for my current app i'm working in.

To install:

cd ~/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Commands
wget http://markgandolfo.com/system/files/2/original/Restart_Server.tmCommand

Then restart Textmate/Reload Bundles.

To use it simple press ^⌥⌘ R buttons, and your app will restart

Post a comment


Markdown enabled