Thursday, June 4, 2009

Deploying from RubyMine

I'm really enjoying RubyMine. I like the git integration. It's nice to not have to open up a terminal just to commit/push changes.

Currently, there is not similar built in support for Capistrano, but it's easy enough to fake. Just go to Run/Run and add a new entry with the following parameters:

Ruby Script: /usr/bin/cap
Script Arguments: deploy (if you do multi-stage, you can do "production deploy", etc.)
Working Directory: local RAILS_ROOT dir

Leave everything else as default and you are good to go.