Gem Issues with Passenger

posted on 2009-03-31 - amd.im/c3fH

I was ignorantly happily letting my gems be pulled in automatically on my previous server using Nginx + Mongrel_Cluster and this seemed to pose no problems.

BUT! when I switched to a new host, I went with an Apache + Passenger (mod_rails) setup and my servers would start but would just offer "Error 500".

I checked the logs and it seemed that it wasn't loading RedCloth so I added the following to my environment.rb file and it all worked fine!

In config/environment.rb:

require 'rubygems'
require 'redcloth'
about

amdavidson.com is a simple blog run by Andrew Davidson, a manufacturing engineer with a blogging habit. He sometimes posts 140 character tidbits, shares photos, and saves links. You can also see posts dating back to 2005.

Search