Search code examples
ruby-on-railsrvmbundlerdreamhost

Changing gemets to be compatible with Passenger on Dreamhost


I had another post started:

Rack / Passenger fails on Dreamhost

but after some digging I am thinking my gems are incompatible. My Dreamhost Passenger uses Rails 3.0.3 and my dev system has 3.1.3. I have been playing around with rvm and gem but I can't figure out how to force rails and v3.0.3 dependancies.

Can anyone confirm that this is my issue and if so where do I start? I am sure I am missing something obvious but all my Googling has come up empty handed so far.

I am pretty new to Rails and the entire gem concept still hurts my brain and this is probably have the issue I have so far :^)


Solution

  • The simple solution is to edit the passenger entry in your gemfile to this:

    gem 'passenger', '3.0.3'
    

    and then run bundle update passenger on your dev machine.

    I would really highly recommend you look into using rbenv or rvm to install and manage ruby and gems separate from the system gems that Dreamhost has installed though. I'm not sure if that's outside their terms, but you should be able to install locally for your user. This will help you avoid the same problem with other gems in the future.