Avoid Empty Deploys with Capistrano

If you’ve ever forgotten to push your changes to the remote repository before trying to make a deploy, you will know that it can be really frustrating to think that everything has gone live when actually it has not. This little script will help you avoid this situations.

Read more →


Passenger, RVM gemsets and Bundler

When using passenger with rvm I’ve had some issues with project specific gemsets, where bundler was unable to find the gems. After searching a lot I found out about using the “config/setup_load_paths.rb” file to tell passenger where to locate your gems, but then I had a new issue with rvm trying to use the system ruby instead of the ruby version of my .rvmrc file.

After going to the irc channel, I got some help that help me fixed my problem. The culprit was my rvmrc file.

Read more →


Conferencia Rails Workshop

As promised here are the slides for the “Conferencia Rails” workshop on process automation. Thanks to all the people that were there. I’m also releasing the redmine CLI I’ve created along with the CLI twitter client.

The presentation was created using the slideshow gem which generates an html document for you.

Slides To start the presentation just hit the “LEFT” arrow key. You can also find a pdf version here.

Redmine CLI

Ruby CLI Tweet

Hope you enjoy it.

Read more →


Ruby Enterprise, Passenger and Encoding hell

Today I spent several hours with my friend Gleb trying to find a weird bug we we’re having importing some rss feeds.

We have a rake task that will grab an xml feed and import it to our system. When we call this rake task from the command line it would run fine, but if we run it from inside our application, we would get some wrong characters (you know, the usual ???) in the imported items.

Read more →