<?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>picofarad.org &#187; ruby</title>
	<atom:link href="http://picofarad.org/blog/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://picofarad.org/blog/</link>
	<description>Karl-Martin Skontorp's homepage and blog.</description>
	<lastBuildDate>Sun, 10 Jan 2010 17:28:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dotfiles 2009-02-03</title>
		<link>http://picofarad.org/blog/dotfiles-2009-02-03/</link>
		<comments>http://picofarad.org/blog/dotfiles-2009-02-03/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 20:58:17 +0000</pubDate>
		<dc:creator>kms</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://picofarad.org/?p=348</guid>
		<description><![CDATA[A new set of dotfiles is now available in the download area and on GitHub: kms/dotfiles/. Contains configurations for vim, zsh, irb and more. If you are looking for more dotfile inspiration, do a search on GitHub. At the moment they are hosting almost 400 different dotfile repositories.]]></description>
			<content:encoded><![CDATA[A new set of dotfiles is now available in the <a href="http://picofarad.org/download/dotfiles/">download area</a> and on <a href="http://github.com/kms/dotfiles/tree/master">GitHub: kms/dotfiles/</a>. Contains configurations for <a href="http://vim.org/">vim</a>, <a href="http://zsh.org/">zsh</a>, <a href="http://en.wikipedia.org/wiki/Interactive_Ruby_Shell">irb</a> and more. If you are looking for more dotfile inspiration, do a <a href="http://github.com/search?langOverride=&#038;q=dotfile&#038;repo=&#038;start_value=1&#038;type=Repositories">search on GitHub</a>. At the moment they are hosting almost 400 different dotfile repositories.]]></content:encoded>
			<wfw:commentRss>http://picofarad.org/blog/dotfiles-2009-02-03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CruiseControl.rb with Apache as front-end</title>
		<link>http://picofarad.org/blog/cruisecontrolrb-with-apache-as-front-end/</link>
		<comments>http://picofarad.org/blog/cruisecontrolrb-with-apache-as-front-end/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 00:51:56 +0000</pubDate>
		<dc:creator>kms</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://picofarad.org/?p=205</guid>
		<description><![CDATA[I run CruiseControl.rb for a few personal projects on a server on the home LAN. CCrb comes with its own web server running by default on port 3333, but I wanted to use my Apache server as a front-end. Doing this through mod_proxy is normally pretty easy. However, I quickly get into trouble with the [...]]]></description>
			<content:encoded><![CDATA[<p>I run <a href="http://cruisecontrolrb.thoughtworks.com/">CruiseControl.rb</a> for a few personal projects on a server on the home LAN. CCrb comes with its own web server running by default on port 3333, but I wanted to use my <a href="http://httpd.apache.org/">Apache</a> server as a front-end. Doing this through <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html">mod_proxy</a> is normally pretty easy. However, I quickly get into trouble with the absolute URLs coming from CCrb as it assumes it is running at the root URL. After some head scratching I find an environment variable for <a href="http://rubyonrails.org/">Rails</a> called RAILS_RELATIVE_URL_ROOT, but setting it doesn&#8217;t change the URLs at all. More head scratching. I finally find <a href="http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/">the solution</a>! Below is the necessary configuration.</p>

<img src="http://picofarad.org/wordpress/wp-content/uploads/2009/01/cc2.png" alt="CruiseControl.rb" title="CruiseControl.rb" width="448" height="256" class="aligncenter size-full wp-image-251" />

<p>
<dl>
<dt>Apache VirtualHost configuration</dt>
<dd>
<pre class="code">
&lt;Proxy *&gt;
    Order deny,allow
    Allow from all
&lt;/Proxy&gt;
ProxyRequests off
ProxyPass /cc/ http://localhost:3333/
ProxyPassReverse /cc/ http://localhost:3333/
</pre>
</dd>

<dt>CruiseControl.rb config/environments/production.rb</dt>
<dd>
<pre class="code">
ActionController::AbstractRequest.relative_url_root = "/cc"
</pre>
</dd>
</dl>
</p>]]></content:encoded>
			<wfw:commentRss>http://picofarad.org/blog/cruisecontrolrb-with-apache-as-front-end/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
