Railscast: backup database before migration

The code for the db:backup task can be found in this post.

Rake task for backing up MySQL database

It is often a good idea to do backups, right? ActiveRecord doesn’t provide a straight task to do them, so I have written a small rake task to achieve that. This task automatically cleans up old backups. Additionally, it offers two additional variables to define max number of backups left and the directory name to [...]

RVM, Passenger 3, REE, Rails3 in a Debian

This post explains how to install a global RVM (Ruby Version Manager) with Passenger 3 gem, Ruby Enterprise Edition in a Debian server machine for all users.

Rails application crashing when trying to upload files with mod_passenger

If you are using Ruby on Rails with Apache (or Apache ITK) and mod_passenger and you get an error while you are trying to upload a file through Rails application, you are probably facing the problem of wrong permissions set in the webserver_private directory of passenger. Passenger is not currently supporting ITK and is not [...]