I’m probably not the only one who has or will run into this, especially if others are running a new (read: >=3.x) version of Ruby on Rails, using RVM, on Dreamhost, and were following some outdated instructions from the Dreamhost Wiki on getting Rails 3 up and running.
The Active Support Cache Error Message
1 2 3 4 |
|
Solution after the jump.
The Underlying Problem
Your gem paths are probably hosed somewhere in your configuration file. The DH Wiki suggested this:
1 2 3 |
|
Chances are that those don’t jive with your RVM gempath.
I imagine this suggestion was off too:
1 2 |
|
The Good Fix
I imagine the correct fix is unborking your gem paths. I’ll investigate this in greater depth some time down the road.
Until such a time, here’s how to get around the issue.
The Sloppy Fix
1
|
|
This will get rails to look in the RAILSROOT/vendor/bundle folder instead of your system path. Stick this in your git post-receive hook, or add it as a task to whatever deployment system you’re using, to have it execute every time you push. As solutions go, this is slow and crappy, but probably won’t kill you if your updates are infrequent.