<?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>ph-lee &#187; domain</title>
	<atom:link href="http://www.ph-lee.com/tag/domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ph-lee.com</link>
	<description>aspire to inspire before you expire</description>
	<lastBuildDate>Sat, 29 May 2010 19:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How-to : Deploy Ruby on Rails in a subdirectory and not in root</title>
		<link>http://www.ph-lee.com/2009/02/27/deploying-ruby-on-rails-in-a-subdirectory-and-not-in-root/</link>
		<comments>http://www.ph-lee.com/2009/02/27/deploying-ruby-on-rails-in-a-subdirectory-and-not-in-root/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 02:37:11 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[environment.rb]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[subdirectory]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=24</guid>
		<description><![CDATA[Normally one would deploy their rails application in the root directory (top-level) ie where the domain is, for example&#8230;
www.your-domain.com
However, you may want to deploy your app in a subdirectory such as&#8230;
www.your-domain.com/your_app
You may want to do this if you want to deploy several applications on the same domain or temporarily for testing purposes. So heres what [...]]]></description>
			<content:encoded><![CDATA[<p>Normally one would deploy their rails application in the root directory (top-level) ie where the domain is, for example&#8230;</p>
<p><code>www.your-domain.com</code></p>
<p>However, you may want to deploy your app in a subdirectory such as&#8230;</p>
<p><code>www.your-domain.com/your_app</code></p>
<p>You may want to do this if you want to deploy several applications on the same domain or temporarily for testing purposes. So heres what to do. Naviagate to the environment.rb file found here&#8230;</p>
<p><code>root | configuration | environment.rb</code></p>
<p>Open the file in your favourite text editor. Add the relative url configuration to your config as shown below. I added it to the end of the do statement.</p>
<p><code>Rails::Initializer.run do |config|<br />
config.action_controller.relative_url_root = "/your_app"<br />
end</code></p>
<p>This setups the environment for rails to now run with url root of your_app.</p>
<p>Happy deploying!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/02/27/deploying-ruby-on-rails-in-a-subdirectory-and-not-in-root/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
