Rails 2.3.5 on Dreamhost (Shared Hosting)
Today, I started a new project. A minimalistic bug tracker that should really work under Dreamhost. The only reason I need this to work on Dreamhost is because bills begin to add up after having a few VPS accounts and I’m trying to cut my spending and since Dreamhost gives me unlimited disk space and bandwidth I figure I will use it and yes I know I can use GitHub but that cost money for private repositories.
I installed the latest rails using sudo gem install rails –version 2.3.5 and I got Capistrano all set-up and was able to deploy. Now the only thing that took almost all day was trying to figure out why rails would not process the request. So I did “rake rails:freeze:gems” to freeze the gems. Once I did that I was having problems with Rack version 1.0 already activated and I hacked around RubyGems to see if I can deactivate it but I didn’t find anyway of doing that. I also googled a ton of searched but found nothing.
What did work was to modify the rails core, ActionController to be specific in file:
vendor/rails/actionpack/lib/action_controller.rb
I modified lines 34 and 35 and commented them out.
I then added the following:
load "#{RAILS_ROOT}/vendor/gems/rack-1.0.1/lib/rack.rb"
the end result look like this:
#gem 'rack', '~> 1.0.1' #require 'rack' load "#{RAILS_ROOT}/vendor/gems/rack-1.0.1/lib/rack.rb"
which after doing that, it ALL worked well. Now I can continue with building my app.