Monday, August 24th, 2009

RubyGem version error: rack(0.3.0 not ~> 1.0.0)

Problem
Trying to deploy in dreamhost with capistrano you get the error:
RubyGem version error: rack(0.3.0 not ~> 1.0.0)
Solution
Log in with ssh to your dreamhost account and then install the newer version of rack that is not yet installed in dreamhost:
gem install rack
That assumes that you have followed the instructions for setting up your local gems [...]

No Comments » - Posted in Dreamhost, ruby on rails by kosmas

Wednesday, September 17th, 2008

Dreamhost, Rails 2.1.1, Freeze, Capistrano

Problem
With the imminent upgrade in Dreamhost to Rails 2.1.1 (dreamhost blog post here), you may want to freeze your Rails version to a previous version, using capistrano.

Solution
On your local development pc freeze the rails:
rake rails:freeze:gems
Add the new code to your svn repository:
svn commit -m ‘freeze rails’
And then deploy to dreamhost using capistrano:
cap deploy
Your rails project [...]

4 Comments » - Posted in ruby on rails by kosmas

Wednesday, July 16th, 2008

Developing in Rails 2.1 and deploying in Rails 2.0.2 (or error – undefined method time_zone)

Problem
You are developing on the latest version of Rails (2.1), but your production server for deployment uses version 2.0.2 (as dreamhost is using at the moment).
Solution

First change the environment.rb file to use the rails version in your deployment server
RAILS_GEM_VERSION = ‘2.0.2′ unless defined? RAILS_GEM_VERSION

You should probably be geting the error: undefined method = time [...]

No Comments » - Posted in ruby on rails by kosmas

Tuesday, May 13th, 2008

Dreamhost passenger (mod_rails) announced

Today, there was an announcement about Dreamhost, having the new Passenger (mod_rails) feature ready for use with Ruby on Rails applications.
The full announcement is here.
It should be changing the way Rails applications are deployed, making it much easier.

No Comments » - Posted in linux, ruby on rails by kosmas