<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hank Beaver &#187; Rails</title>
	<atom:link href="http://www.hankbeaver.com/index.php/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hankbeaver.com</link>
	<description>Ruby, open-source, Internet technologist located in Atlanta, GA, USA</description>
	<lastBuildDate>Tue, 29 Jun 2010 05:34:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Rails for custom applications and avoiding the CMS trap.</title>
		<link>http://www.hankbeaver.com/index.php/2009/09/03/using-rails-for-custom-applications-and-avoiding-the-cms-trap/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/09/03/using-rails-for-custom-applications-and-avoiding-the-cms-trap/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 17:38:23 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[esi]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[sinatra]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=102</guid>
		<description><![CDATA[I&#8217;m am still captivated by the perfect, simple CMS solution in Ruby/Rails (I&#8217;ll take another framework too).  There are some fantastic projects out there, browsercms.org for example. But posts like  THIS , really drive home the point. If Wordpress is so well suited for a simple site and/or blog, why not just use [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m am still captivated by the perfect, simple CMS solution in Ruby/Rails (I&#8217;ll take another framework too).  There are some fantastic projects out there, <a href="http://www.rubyslacker.com/wp-admin/browsercms.org">browsercms.org</a> for example. But posts like <a href="http://aaronlongwell.com/2009/06/the-ruby-on-rails-cms-dilemma.html"> THIS </a>, really drive home the point. If Wordpress is so well suited for a simple site and/or blog, why not just use it? <a href="http://www.igvita.com/2007/07/04/integrating-wordpress-and-rails/">Igvita</a> demonstrates easy Rails integration with <a href="http://www.apache.org">Apache</a> rewrite rules.</p>
<p>There are others out there stating the same thing: while Rails can be used to create a CMS, a developer&#8217;s time is better spent solving business rather than reinventing the wheel in Ruby to keep the whole project/code under one umbrella. And at my current gig, we are starting to retool for this paradigm. Rails and <a href="http://www.sinatrarb.org">Sinatra</a> apps are purely business focuses and super light weight. These service applications can them be glued together via <a href="http://www.w3.org/TR/esi-lang">ESI</a>, rewrites, or Wordpress for consumption. In effect, your complex web app is assembled at request time from a set of simple web services. Here is some mock code to demonstrate:</p>
<pre>
wordpress_template.php
//some more wonder wordpress stuff
&lt;?= include_rails_service('http://service.app/user/profile',ESI_INCLUDE) ?&gt;
//some more wonder wordpress stuff
&lt;?= include_rails_service('http://service.app2/events/weeks/2',SERVICE) ?&gt;
//end of wordpress.php
...
//function included elsewhere
function include_rails_service(service_url,type){
//could return any of following for the resource url
 switch (type) {
  case ESI_INCLUDE:
   return "&lt;esi include ='" + service_url + "'&gt;";
   break;
  case SERVICE:
   include service_url;
   break;
  case AJAX:
//javascript include with service js, doing doc.write
}
}
</pre>
<p>The point is Wordpress doesn&#8217;t know about Rails and Rails doesn&#8217;t know about Wordpress. Keep them seperate, keep them simple and make life better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/09/03/using-rails-for-custom-applications-and-avoiding-the-cms-trap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F5/BigIP Healthcheck against Thin/Sinatra app</title>
		<link>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:18:01 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BigIP]]></category>
		<category><![CDATA[F5]]></category>
		<category><![CDATA[healthcheck]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=87</guid>
		<description><![CDATA[When using a BigIP to load balance a Sinatra app via Thin you will need to provide more than just the GET request string in F5&#8217;s &#8220;send string&#8221; field OR you might get &#8220;Request Invalid!&#8221; error message. Heads up.
Using this will cause issue:

GET /ops/heartbeat

This works:

GET /ops/heartbeat HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n


]]></description>
			<content:encoded><![CDATA[<p>When using a BigIP to load balance a Sinatra app via Thin you will need to provide more than just the GET request string in F5&#8217;s &#8220;send string&#8221; field OR you might get &#8220;Request Invalid!&#8221; error message. Heads up.</p>
<h4>Using this will cause issue:</h4>
<h4>
<pre>GET /ops/heartbeat</pre>
</h4>
<p><strong>This works:</strong></p>
<h4>
<pre>GET /ops/heartbeat HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n</pre>
</h4>
<h4></h4>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realtime response time reporting from Rails logs using regex.</title>
		<link>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:12:20 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=86</guid>
		<description><![CDATA[Simple but effective regex to monitor when there are issues. In my example below, this will show all response times &#62; 1 second:
 tail -f production.log &#124; egrep "Completed in [0-9]{3,10}"
]]></description>
			<content:encoded><![CDATA[<p>Simple but effective regex to monitor when there are issues. In my example below, this will show all response times &gt; 1 second:</p>
<pre> tail -f production.log | egrep "Completed in [0-9]{3,10}"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging/Troubleshooting Rails Applications in Production Enviroments</title>
		<link>http://www.hankbeaver.com/index.php/2009/05/29/debuggingtroubleshooting-rails-applications-in-production-enviroments/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/05/29/debuggingtroubleshooting-rails-applications-in-production-enviroments/#comments</comments>
		<pubDate>Fri, 29 May 2009 22:55:37 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[production]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=84</guid>
		<description><![CDATA[Introduction
At my current gig with Primedia, we have some pretty high volume Rails sites. Since having highly available sites are essential for our core business, we have to be very attentive to production issues. Below is a list that I&#8217;ve compiled recently in my head and by working with some very bright folks. This doc [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>At my current gig with <a href="http://www.primedia.com">Primedia</a>, we have some pretty high volume Rails sites. Since having highly available sites are essential for our core business, we have to be very attentive to production issues. Below is a list that I&#8217;ve compiled recently in my head and by working with some very bright folks. This doc is to help Ops/Dev remember some basics and tricks when debugging issues. So remember to try this stuff.</p>
<p><strong>Non-Technical (READ FIRST)</strong></p>
<p>1. If the issue is not a major impact on production, make sure all your troubleshooting is passive! You might introduce an outage if you try serious troubleshooting.<br />
2. Confirm the issue with Ops/Infrastructure in your presence, this gets buy-in from with the folks who have official root access.<br />
3. As a developer, you should not work alone on production systems except to gather information (if you get temporary access). All changes (in seeking issue mitigation) should be paired with Ops/Infra. This will avoid finger-pointing and headaches later.</p>
<p><strong>Technical</strong></p>
<p>Elimination + log files is my troubleshooting method of choice.</p>
<p>1. Skip the load balancer if possible and hit direct IP/Port of a single app server to eliminate load balancer in mix.<br />
2. Enable DEBUG log level and restart app server(s). Preferably, take an app server out of load balancer pool and work on in isolation. Regardless, DEBUG can slow response signficantly so be aware. However, there are situations where DEBUG is the only way to get an indication from Rails what is going on.<br />
3. Tail log file of single app IP/Port to squelch noise from other servers and hit just that app server.<br />
4. Make sure that the PIDs are not hung,old versions. Look at time/date of PIDS. If the deploy is screwed up, you can be deploying new code and yet the processes running are code from a month ago.<br />
5. To be thorough, look at the kernel logs too. In Linux, /var/log/messages etc. You could have something else that is going on.<br />
6. The logs should give status regarding database(s), but especially look for the words &#8220;timeout&#8221; if you have any custom network libraries that fetch data (we do) or &#8220;ActiveRecord&#8221;.  Perhaps even, grep for it.<br />
7. Use a non-browser client, like Curl or wget to eliminate possible browser issues. Case in point, we had an issue related to ActiveRecord sessions that were migrated to another datacenter. When accessed via Curl there was no issue (Curl does not save cookies by default).</p>
<p><strong>Other</strong></p>
<p>1. If you cannot duplicate issue in development, remember to change your configs to look like production mode and run your development workstation in production mode. Rails behaves different in its modes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/05/29/debuggingtroubleshooting-rails-applications-in-production-enviroments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes on MerbDay Atlanta 2008</title>
		<link>http://www.hankbeaver.com/index.php/2008/12/07/notes-on-merbday-atlanta-2008/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/12/07/notes-on-merbday-atlanta-2008/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 00:48:37 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=68</guid>
		<description><![CDATA[Ironically, the two most interesting items for me personally were not directory related to Merb at all. I was quite impressed with the CSS capabilities of SASS and CouchDB gave me hope that being stuck in the rigidity of columns in SQL is not always my path. Here&#8217;s my my Merbday summary,  iteration retrospective format:
STOP:

 [...]]]></description>
			<content:encoded><![CDATA[<p>Ironically, the two most interesting items for me personally were not directory related to <a title="http://merbivore.com/" href="http://merbivore.com/">Merb</a> at all. I was quite impressed with the CSS capabilities of <a title="http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html" href="http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html">SASS</a> and <a title="incubator.apache.org/couchdb/" href="http://www.rubyslacker.com/wp-admin/incubator.apache.org/couchdb">CouchDB</a> gave me hope that being stuck in the rigidity of columns in SQL is not always my path. Here&#8217;s my my Merbday summary,  iteration retrospective format:</p>
<p>STOP:</p>
<ul>
<li> Assuming Merb is &#8220;fragmentation&#8221; (so said someone smarter than me ) of the Rails community and a real effort to improve on Ruby as the defacto web programming language.</li>
</ul>
<p>START:</p>
<ul>
<li> Using <a title="http://ruby-prof.rubyforge.org/" href="http://ruby-prof.rubyforge.org/">ruby-prof</a> in Rails projects and <a title="http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application" href="http://cfis.savagexi.com/2007/07/10/how-to-profile-your-rails-application">Kcachegrind</a> to profile apps. (thanks for <a title="http://yehudakatz.com/" href="http://yehudakatz.com/">Yehuda Katz</a> at <a title="www.engineyard.com " href="http://www.rubyslacker.com/wp-admin/www.engineyard.com ">www.engineyard.com </a>)</li>
<li> Playing with Merb on a real project and focus on understand slices and interaction with other slices.</li>
<li> Investigate writing an Admin or basic CMS slice with someone else.</li>
</ul>
<p>CONTINUE:</p>
<ul>
<li>Loving Rails and not abandon it as yet.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/12/07/notes-on-merbday-atlanta-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby CMS List</title>
		<link>http://www.hankbeaver.com/index.php/2008/12/04/ruby-cms-list/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/12/04/ruby-cms-list/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 13:43:15 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=62</guid>
		<description><![CDATA[Motivation: 
As an avid Ruby/Rails programmer and longtime CMS coder and user the following is yet another effort to keep a list of current Ruby/Rails CMS&#8217;s. That is the goal of this post. I will use comments from others to update the list and hopefully keep and up-to-date list for all (including myself) to use. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Motivation: </strong><br />
As an avid Ruby/Rails programmer and longtime CMS coder and user the following is yet another effort to keep a list of current Ruby/Rails CMS&#8217;s. That is the goal of this post. I will use comments from others to update the list and hopefully keep and up-to-date list for all (including myself) to use. Heck, I would love to have others help review and keep list up to date.</p>
<p><strong>External Resources:</strong></p>
<p>http://www.widgetfinger.com/<br />
http://www.ajaxlines.com/ajax/stuff/article/top_ruby_cms.php</p>
<p>http://webscripts.softpedia.com/downloadTag/ruby+cms</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/12/04/ruby-cms-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using gem dependencies with Rspec == BAD ! !</title>
		<link>http://www.hankbeaver.com/index.php/2008/11/17/using-gem-dependencies-with-rspec-bad/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/11/17/using-gem-dependencies-with-rspec-bad/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 17:29:42 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rspec]]></category>
		<category><![CDATA[exceptions]]></category>
		<category><![CDATA[gems]]></category>

		<guid isPermaLink="false">http://1000fires.com/wordpress/?p=51</guid>
		<description><![CDATA[We had an issue the last couple of weeks on a new Rails project we started here at my gig. All Rails exceptions were quietly logged without showing any stack trace to browser. This was very annoying. Secondly, the RAILS_ENV was reported as &#8220;test&#8221;. mmmm, very suspicious. After some investigation I found the culprit on [...]]]></description>
			<content:encoded><![CDATA[<p>We had an issue the last couple of weeks on a new Rails project we started here at my gig. All Rails exceptions were quietly logged without showing any stack trace to browser. This was very annoying. Secondly, the RAILS_ENV was reported as &#8220;test&#8221;. mmmm, very suspicious. After some investigation I found the culprit on rails.rb line #1 of rails-rspec gem installed in our vendor dir:</p>
<div class="code">silence_warnings { RAILS_ENV = &#8220;test&#8221; }</div>
<p>Take a look at this to get a little context:</p>
<p>http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies</p>
<p>How can rspec affect your actual Rails environment, script/server, script/console, script/about? I&#8217;ll show you. enter our environment.rb:</p>
<div class="code">
<p>config.gem &#8216;rspec-rails&#8217;,<br />
:version =&gt; &#8216;&gt;= 1.1.11&#8242;, :lib =&gt; &#8217;spec/rails&#8217;<br />
config.gem &#8216;rspec&#8217;,<br />
:version =&gt; &#8216;&gt;= 1.1.11&#8242;, :lib =&gt; &#8217;spec&#8217;</p>
</div>
<p>Aha! So effectively, by including our gems here too (and gaining the added benefits noted above at ryandaigle.com )rather than simply in our spec_helper, we replaced our RAILS_ENV and invoked the Rails equivalent of an exception black hole.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/11/17/using-gem-dependencies-with-rspec-bad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My passenger config example.</title>
		<link>http://www.hankbeaver.com/index.php/2008/09/17/my-passenger-config-example/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/09/17/my-passenger-config-example/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 17:22:56 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[passenger]]></category>

		<guid isPermaLink="false">http://1000fires.com/wordpress/?p=44</guid>
		<description><![CDATA[Passenger (a.k.a mod_rails) is getting some buzz (google it). Looking at the below config and the fact that deployments are automatic from Web Server with a simple file touch.
In http.conf:
LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby
&#60;VirtualHost *:80&#62;
ServerName vwebadm11.atlis1
#DocumentRoot /var/www/apps/html
DocumentRoot /var/www/apps/provisioning_webservices/current/public
ErrorLog logs/prodops_errors_log
CustomLog logs/prodops_log combined
#RailsBaseURI /prov_websvc         # Passenger Rails link
RailsEnv test
&#60;/VirtualHost&#62;
&#60;Directory "/var/www/apps/provisioning_webservices/current/public"&#62;
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
&#60;/Directory&#62;
]]></description>
			<content:encoded><![CDATA[<p>Passenger (a.k.a mod_rails) is getting some buzz (google it). Looking at the below config and the fact that deployments are automatic from Web Server with a simple file touch.</p>
<p>In http.conf:</p>
<pre>LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby</pre>
<pre>&lt;VirtualHost *:80&gt;
ServerName vwebadm11.atlis1
#DocumentRoot /var/www/apps/html
DocumentRoot /var/www/apps/provisioning_webservices/current/public
ErrorLog logs/prodops_errors_log
CustomLog logs/prodops_log combined
#RailsBaseURI /prov_websvc         # Passenger Rails link
RailsEnv test
&lt;/VirtualHost&gt;</pre>
<pre>&lt;Directory "/var/www/apps/provisioning_webservices/current/public"&gt;
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
&lt;/Directory&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/09/17/my-passenger-config-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling initialize in ActiveRecord model causes nil.has_keys? error.</title>
		<link>http://www.hankbeaver.com/index.php/2008/09/02/calling-initialize-in-activerecord-model-causes-nilhas_keys-error/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/09/02/calling-initialize-in-activerecord-model-causes-nilhas_keys-error/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 13:24:35 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[has_keys?]]></category>
		<category><![CDATA[model]]></category>

		<guid isPermaLink="false">http://1000fires.com/wordpress/?p=43</guid>
		<description><![CDATA[When instantiating a model class this error occurs:
instance = MyModel.new
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.has_key?
This is rectified by placing a super within model class.
def initialize
super
logger.debug("initialize VirtualMta: #{self.class}")
end
]]></description>
			<content:encoded><![CDATA[<p>When instantiating a model class this error occurs:</p>
<pre>instance = MyModel.new</pre>
<pre>NoMethodError: You have a nil object when you didn't expect it!</pre>
<pre>The error occurred while evaluating nil.has_key?</pre>
<p>This is rectified by placing a <strong>super</strong> within model class.</p>
<pre>def initialize</pre>
<pre>super</pre>
<pre>logger.debug("initialize VirtualMta: #{self.class}")</pre>
<pre>end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/09/02/calling-initialize-in-activerecord-model-causes-nilhas_keys-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to set up mongrel_cluster on Westhost</title>
		<link>http://www.hankbeaver.com/index.php/2008/05/20/how-to-set-up-mongrel_cluster-on-westhost/</link>
		<comments>http://www.hankbeaver.com/index.php/2008/05/20/how-to-set-up-mongrel_cluster-on-westhost/#comments</comments>
		<pubDate>Tue, 20 May 2008 23:43:42 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[westhost]]></category>

		<guid isPermaLink="false">http://1000fires.com/wordpress/?p=40</guid>
		<description><![CDATA[Goals:

To auto start with init.d, upon westhost restart, etc.
Use Apache to front end, via mod_proxy.

You&#8217;ll have to follow other sites on installing gems, etc.  This Site  has some very useful info, namely you need to symlink mongrel_cluster_ctl and ruby to /usr/bin/ (you&#8217;ll have to do a find / -name mongrel_cluster_ctl). Mine was here: [...]]]></description>
			<content:encoded><![CDATA[<p>Goals:</p>
<ul>
<li>To auto start with init.d, upon westhost restart, etc.</li>
<li>Use Apache to front end, via mod_proxy.</li>
</ul>
<p>You&#8217;ll have to follow other sites on installing gems, etc.  <a href="http://mongrel.rubyforge.org/wiki/MongrelCluster">This Site </a> has some very useful info, namely you need to symlink mongrel_cluster_ctl and ruby to /usr/bin/ (you&#8217;ll have to do a find / -name mongrel_cluster_ctl). Mine was here: /usr/local/ruby/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/bin/mongrel_cluster_ctl</p>
<p>So I linked into /etc/init.d/ like so:</p>
<p>ln -s /usr/local/ruby/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/bin/mongrel_cluster_ctl /etc/init.d/</p>
<p>chkconfig is not installed on westhost, so you have to do the init.d link/scrips the old fashioned way:</p>
<p>ln -s /etc/init.d/mongrel_cluster_ctl /etc/rc.d/rc3.d/S81mongrel_cluster</p>
<p>ln -s /etc/init.d/mongrel_cluster_ctl /etc/rc.d/rc3.d/K19mongrel_cluster</p>
<p>K = Kill, the number means the order</p>
<p>S= Start, &#8220;&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2008/05/20/how-to-set-up-mongrel_cluster-on-westhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
