Friday, February 1, 2008

Deploying in Bluehost

I started writing this entry not knowing what is wrong with my app in Bluehost - except that it isn't running. I know this because I get a :

Application error

Rails application failed to start properly

1) First I made sure it had all the gems it needed. Since we wanted to freeze our gems, we had put them in the gem folder.

I added this to our environment.rb

ENV['GEM_PATH'] = '/home/YOUR_USERNAME/.gems:/usr/lib/ruby/gems/1.8'

2) Looking at the production.log, now I see an error. What's the error? Among other stuff, the one that's most readable is "Missing helper file helpers/formatting_helper.rb".

I upload it.

3) It works.

No comments: