{"id":331,"date":"2009-11-29T19:35:10","date_gmt":"2009-11-30T03:35:10","guid":{"rendered":"http:\/\/fernyb.net\/blog\/?p=331"},"modified":"2009-11-29T19:35:54","modified_gmt":"2009-11-30T03:35:54","slug":"rails-2-3-5-on-dreamhost-shared-hosting","status":"publish","type":"post","link":"http:\/\/fernyb.net\/blog\/2009\/11\/29\/rails-2-3-5-on-dreamhost-shared-hosting\/","title":{"rendered":"Rails 2.3.5 on Dreamhost (Shared Hosting)"},"content":{"rendered":"<p>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&#8217;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.<\/p>\n<p>I installed the latest rails using <strong>sudo gem install rails &#8211;version 2.3.5<\/strong> 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 &#8220;<strong>rake rails:freeze:gems<\/strong>&#8221; 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&#8217;t find anyway of doing that. I also googled a ton of searched but found nothing. <\/p>\n<p>What did work was to modify the rails core, ActionController to be specific in file:<\/p>\n<pre style=\"color:#fff\">\r\nvendor\/rails\/actionpack\/lib\/action_controller.rb\r\n<\/pre>\n<p>I modified lines 34 and 35 and commented them out.<br \/>\nI then added the following:<\/p>\n<pre style=\"color:#fff;\">\r\nload \"#{RAILS_ROOT}\/vendor\/gems\/rack-1.0.1\/lib\/rack.rb\"\r\n<\/pre>\n<p>the end result look like this:<\/p>\n<pre style=\"color:#fff\">\r\n#gem 'rack', '~> 1.0.1'\r\n#require 'rack'\r\nload \"#{RAILS_ROOT}\/vendor\/gems\/rack-1.0.1\/lib\/rack.rb\"\r\n<\/pre>\n<p>which after doing that, it ALL worked well. Now I can continue with building my app.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;m trying to cut my spending and since Dreamhost gives me unlimited disk space and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,3,9,21,19],"tags":[],"_links":{"self":[{"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/posts\/331"}],"collection":[{"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":8,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"predecessor-version":[{"id":339,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/posts\/331\/revisions\/339"}],"wp:attachment":[{"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fernyb.net\/blog\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}