<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Rails + shared hosting = application error - Comments</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error</link>
 <description>Comments for &quot;Rails + shared hosting = application error&quot;</description>
 <language>en</language>
<item>
 <title>Thanks for getting in touch,</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13270</link>
 <description>&lt;p&gt;Thanks for getting in touch, Robby. You&#039;re right, it is a pain for me to restart &lt;span class=&quot;caps&quot;&gt;FCGI &lt;/span&gt;manually, though from what I can see Dreamhost does do a limited amount of &lt;span class=&quot;caps&quot;&gt;FCGI &lt;/span&gt;respawning (I think). I can kill the &lt;span class=&quot;caps&quot;&gt;FCGI &lt;/span&gt;processes myself, but only from the command line. I often recommend my clients to Planet Argon, as I&#039;ve heard many good things about your service: I&#039;ll bear you in mind once I get round to moving!&lt;/p&gt;</description>
 <pubDate>Wed, 17 Jan 2007 06:09:11 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13270 at http://townx.org</guid>
</item>
<item>
 <title>Yup.
root aT thinkwares.com</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13269</link>
 <description>&lt;p&gt;Yup.&lt;br /&gt;
root aT thinkwares.com&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 19:38:01 -0600</pubDate>
 <dc:creator>Pratik</dc:creator>
 <guid isPermaLink="false">comment 13269 at http://townx.org</guid>
</item>
<item>
 <title>Go with those who know</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13268</link>
 <description>&lt;p&gt;While I am not personally familiar with Dreamhost or MediaTemple... I am the founder of &lt;a href=&quot;http://www.planetargon.com&quot;&gt;&lt;span class=&quot;caps&quot;&gt;PLANET ARGON&lt;/span&gt;&lt;/a&gt;, which was one of the first few companies that started to host Ruby on Rails applications. The issues that you&#039;re having are due to a bad deployment strategy. &lt;/p&gt;

&lt;p&gt;As you&#039;re essentially running a daemon, the php/asp model doesn&#039;t apply here. One update to your application with &lt;span class=&quot;caps&quot;&gt;FCGI... &lt;/span&gt;and your site is going to turn into an Application Error nightmare. The process running your application needs to fully restart and most commercial hosting don&#039;t give you this flexibility.&lt;/p&gt;

&lt;p&gt;The solution? Manage it yourself with a hosting provider that understands the pains of deployment. I know of such a company... ;-)&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 19:36:13 -0600</pubDate>
 <dc:creator>Robby Russell</dc:creator>
 <guid isPermaLink="false">comment 13268 at http://townx.org</guid>
</item>
<item>
 <title>That would be much</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13267</link>
 <description>&lt;p&gt;That would be much appreciated! Are your contact details the same as the ones for Thinkwares?&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 18:33:56 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13267 at http://townx.org</guid>
</item>
<item>
 <title>Freeonrails.com</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13266</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I run a server on Litespeed for freeonrails.com ( yeah, it&#039;s free :) ) and my own apps. And it works like charm. No more application errors unless there is really an error.&lt;/p&gt;

&lt;p&gt;Feel free to drop me an email and I&#039;ll set you up with an account on my server :-)&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br /&gt;
Pratik&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 17:48:02 -0600</pubDate>
 <dc:creator>Pratik</dc:creator>
 <guid isPermaLink="false">comment 13266 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for the comment. I</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13265</link>
 <description>&lt;p&gt;Thanks for the comment. I agree, Rails on Dreamhost is bad. I would love to have my own Linux server (I can do a fair bit of admin. myself :)) but can&#039;t afford a dedicated server. I just can&#039;t justify the price for my hobby projects. The point really is that I&#039;d like Rails to run like &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;on shared hosting: so that it can become a commodity, the same way &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;as. Maybe that&#039;s just plain impossible. If this could happen, I think people would be far more likely to move to Rails from &lt;span class=&quot;caps&quot;&gt;PHP.&lt;/span&gt; I honestly think that&#039;s the main sticking point for Rails, and the number one thing that people complain about.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 14:15:10 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13265 at http://townx.org</guid>
</item>
<item>
 <title>Dreamhost = bad rails performance.</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13264</link>
 <description>&lt;p&gt;Dreamhost is the issue. I have the same issue on a couple apps we (unfortunately) still have running there. It&#039;s obviously flawed because they take 1-2 minutes to start responding, if they respond at all. For static content, php, subversion, they rock. Rails, no good. :)&lt;/p&gt;

&lt;p&gt;All my new sites run on a dedicated box with mongrel / apache 2.2. Rock solid, fast, never down.&lt;/p&gt;

&lt;p&gt;That was initially painful. The past year has been a massive crash-course in Linux administration, when all we really wanted to do was build web-apps. But it&#039;s worth it in the long run, knowing how to run things yourself. &lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 12:30:22 -0600</pubDate>
 <dc:creator>Scott</dc:creator>
 <guid isPermaLink="false">comment 13264 at http://townx.org</guid>
</item>
<item>
 <title>FlickrLilli has been fine,</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13263</link>
 <description>&lt;p&gt;FlickrLilli has been fine, but as soon as it gets even a small amount of traffic, it falls over. I don&#039;t want yet another hosting account to look after (I already have two), and it&#039;s not like I get paid anything to host it, so it will have to stay where it is. Though the source code is available to anyone who wants it, if they want to run their own instance.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 10:52:29 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13263 at http://townx.org</guid>
</item>
<item>
 <title>I agree mostly</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13262</link>
 <description>&lt;p&gt;I&#039;m currently deploying on dreamhost and for the most part it is doing well. I sometimes do get those error pages but for 95%(i just made that up) of the time, it works. My only problem is the amount of time it takes to serve the pages.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 10:21:24 -0600</pubDate>
 <dc:creator>Lake</dc:creator>
 <guid isPermaLink="false">comment 13262 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for the suggestion: I</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13261</link>
 <description>&lt;p&gt;Thanks for the suggestion: I had seen it, but not really looked into it much. Plus I bought my hosting when Rails hosting was still very expensive, and went for a company which simply mentioned it. I think a lot of these dedicated providers have a much better idea what to do. But until your average bloke can install a Rails app. as easily as he/she can install a &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;one, on $3 a month hosting, and have it stay up reliably, it will stay in the niche.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 07:26:20 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13261 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for the suggestion.</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13260</link>
 <description>&lt;p&gt;Thanks for the suggestion. Admittedly, Dreamhost is the cheapest of the cheap. But I also tried to run the app. on Site5 half-decent hosting, and failed there too. Whereas &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;apps. (like Drupal) will run happily serving thousands of pages per month. That&#039;s really my point: I don&#039;t want to spend more money to host one Rails application which is only a hobby for me. It&#039;s more cost effective to run my own &lt;span class=&quot;caps&quot;&gt;LAMP &lt;/span&gt;stack for local use. True, if I was making any money or running a commercial service, I would definitely give RailsPlayground a look, as it&#039;s always being recommended. And it might be worth it for me to shift my hosting (once again!) when my current Site5 account runs its course as RailsPlayground offers &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;too.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 07:24:28 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 13260 at http://townx.org</guid>
</item>
<item>
 <title>Webfaction</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13259</link>
 <description>&lt;p&gt;I&#039;ve heard a lot of good stuff about Webfaction.com. Have you tried them?&lt;/p&gt;

&lt;p&gt;I agree, deployment is the big downside compared to &lt;span class=&quot;caps&quot;&gt;PHP.&lt;/span&gt; No matter how you look at it hosting rails is more costly than &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;and &lt;span class=&quot;caps&quot;&gt;ASP.&lt;/span&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 07:15:09 -0600</pubDate>
 <dc:creator>Stefan</dc:creator>
 <guid isPermaLink="false">comment 13259 at http://townx.org</guid>
</item>
<item>
 <title>Maybe not easy but it is possible</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comment-13258</link>
 <description>&lt;p&gt;I must agree that Rails apps + 3 $ a month hosting means trouble, but you can find a little more expensive hosting that actually works. We have managed to serve peaks of 70 K pages with a shared hosting account, take a look at RailsPlayground, they do know what they are doing.&lt;/p&gt;</description>
 <pubDate>Tue, 16 Jan 2007 07:11:03 -0600</pubDate>
 <dc:creator>Aníbal Rojas</dc:creator>
 <guid isPermaLink="false">comment 13258 at http://townx.org</guid>
</item>
<item>
 <title>Rails + shared hosting = application error</title>
 <link>http://townx.org/blog/elliot/rails_shared_hosting_application_error</link>
 <description>&lt;p&gt;Is it actually possible to run a Rails application, even a simple one, on shared hosting? My answer is no. To my mind, this is still a massive Achilles Heel for Rails: it is virtually impossible to host without your own dedicated server.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://flickrlilli.org.uk/&quot;&gt;Flickrlilli&lt;/a&gt; is the case in point. I have tried shared hosting twice for this, and failed both times; I tried a virtual server run by my friend &lt;a href=&quot;http://schwuk.com/&quot;&gt;schwuk&lt;/a&gt; and ran it under Mongrel for a while, but got worried I was making it fall over. I stripped the whole application down and rewrote it so it was less intensive, then put it on &lt;a href=&quot;http://www.dreamhost.com/r.cgi?223945&quot;&gt;Dreamhost&lt;/a&gt; (though that may be partly down to &lt;span class=&quot;caps&quot;&gt;REXML, &lt;/span&gt;which I had to switch back to from libxml-ruby as Dreamhost doesn&#039;t support it). Dreamhost itself has been fine, but my bloody application still falls over continually. Maybe I&#039;m a terrible coder (though I have an &lt;span class=&quot;caps&quot;&gt;ASP &lt;/span&gt;application I wrote in the dark days &lt;a href=&quot;http://www.punit.bham.ac.uk/vacancies/vacancySearch.htm&quot;&gt;still running three years after I first deployed it&lt;/a&gt;, so I can&#039;t be that bad). Rails just seems inherently exhausting for servers to run.&lt;/p&gt;

&lt;p&gt;If anyone wants to sponsor me to continue to host it, maybe I could put it up on &lt;a href=&quot;http://www.mediatemple.net/&quot;&gt;MediaTemple&lt;/a&gt; or something. Otherwise, it will have to stay in its current crusty bedsit. I am frankly at a loss. In fact, it&#039;s got so bad, I&#039;ve even considered switching back to &lt;span class=&quot;caps&quot;&gt;PHP.&lt;/span&gt; Rails is great for my own &quot;desktop&quot; applications, but for hosted public applications, it&#039;s the pits. And it&#039;s not just me: I still run across &quot;Application error&quot; pages all the time on large, public, commercial sites. Come on, someone, let&#039;s make it easy to host Rails so normal folk start using it. (If only I could write Apache modules - mod_rails, anyone? Well, I suppose I could, but I have a full-time job and a family.) Remove the glass ceiling!&lt;/p&gt;

&lt;p&gt;Maybe this is one for &lt;a href=&quot;http://therailsway.com/&quot;&gt;the Rails Way&lt;/a&gt;: though I&#039;m slightly embarassed by the code, as it was one of the first Rails applications I wrote, and it is quite a mess - perhaps that is the problem, after all...&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/rails_shared_hosting_application_error#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <pubDate>Tue, 16 Jan 2007 10:00:27 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">509 at http://townx.org</guid>
</item>
</channel>
</rss>
