<?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>ไอเอินบล๊อก &#187; relative url</title>
	<atom:link href="http://www.iearn.in.th/tag/relative-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Deploy rails app on a suburi</title>
		<link>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/</link>
		<comments>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 09:00:30 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rails suburi]]></category>
		<category><![CDATA[relative url]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=628</guid>
		<description><![CDATA[หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน url ใด ซึ่งในส่วนของการ deploy ผมได้ deploy apache+mod_proxy+mongrel ซึ่งผมจะมาเขียนที่หลังละกันครับ สำหรับการทำให้ rails deploy บน suburi ทำได้ดังนี้ครับ โดยการแก้ไขในส่วนของ environment.rb config.action_controller.relative_url_root = &#34;/rails&#34; เป็นอันว่าเรียบร้อย 17 views]]></description>
			<content:encoded><![CDATA[<p>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน url ใด ซึ่งในส่วนของการ deploy ผมได้ deploy apache+mod_proxy+mongrel ซึ่งผมจะมาเขียนที่หลังละกันครับ<br />
สำหรับการทำให้ rails deploy บน suburi ทำได้ดังนี้ครับ โดยการแก้ไขในส่วนของ environment.rb</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">config.<span style="color:#9900CC;">action_controller</span>.<span style="color:#9900CC;">relative_url_root</span> = <span style="color:#996600;">&quot;/rails&quot;</span></pre></div></div>

<p>เป็นอันว่าเรียบร้อย</p>

<p class="sayac_bilgi">17 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

