<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Set RAILS_ENV for Phusion Passenger on Dreamhost</title>
	<atom:link href="http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/feed" rel="self" type="application/rss+xml" />
	<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost</link>
	<description>code with a purpose</description>
	<lastBuildDate>Sat, 09 Jul 2011 15:49:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Tadd Giles</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-41444</link>
		<dc:creator>Tadd Giles</dc:creator>
		<pubDate>Sat, 25 Jun 2011 22:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-41444</guid>
		<description>This helped me a lot. Thanks much!</description>
		<content:encoded><![CDATA[<p>This helped me a lot. Thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-34724</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 24 Apr 2011 17:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-34724</guid>
		<description>Thanks very much, not with dreamhost, but had the same problem.</description>
		<content:encoded><![CDATA[<p>Thanks very much, not with dreamhost, but had the same problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-25691</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 30 Dec 2010 03:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-25691</guid>
		<description>Thanks for posting this. It got me out of the deployment problem I was having on DH. I had to make the same change as Sjors pointed out. I had to change the echo to look like this:

echo &quot;ENV[&#039;RAILS_ENV&#039;] = &#039;#{rails_env}&#039;&quot; &gt; #{tmp};

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. It got me out of the deployment problem I was having on DH. I had to make the same change as Sjors pointed out. I had to change the echo to look like this:</p>
<p>echo &#8220;ENV['RAILS_ENV'] = &#8216;#{rails_env}&#8217;&#8221; &gt; #{tmp};</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-18219</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Sun, 18 Jul 2010 18:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-18219</guid>
		<description>@Christoph

That may work fine for users that run their web server using Apache, but there are plenty of people who don&#039;t (including myself).</description>
		<content:encoded><![CDATA[<p>@Christoph</p>
<p>That may work fine for users that run their web server using Apache, but there are plenty of people who don&#8217;t (including myself).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-18171</link>
		<dc:creator>Christoph</dc:creator>
		<pubDate>Sat, 17 Jul 2010 11:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-18171</guid>
		<description>Why don&#039;t you put the RailsEnv variable into the public/.htaccess file. This should do the trick if AllowOverride Options is on.</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t you put the RailsEnv variable into the public/.htaccess file. This should do the trick if AllowOverride Options is on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: katz</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-10413</link>
		<dc:creator>katz</dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-10413</guid>
		<description>I&#039;m a dreamhost user as well. Struggling to set rails environment of staging app to staging. One app with multiple environments sounds so complicated with shared hosting.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a dreamhost user as well. Struggling to set rails environment of staging app to staging. One app with multiple environments sounds so complicated with shared hosting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-10111</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Wed, 29 Apr 2009 13:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-10111</guid>
		<description>@chovy,

If you do get it up for a vote on Dreamhost, I&#039;ll gladly spend some of my voting credits to vote for it.</description>
		<content:encoded><![CDATA[<p>@chovy,</p>
<p>If you do get it up for a vote on Dreamhost, I&#8217;ll gladly spend some of my voting credits to vote for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chovy</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-10108</link>
		<dc:creator>chovy</dc:creator>
		<pubDate>Wed, 29 Apr 2009 03:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-10108</guid>
		<description>I&#039;m going lobby Dreamhost to allow for us to set the RailsEnv string from their interface.

This really is a problem with their api...and if fixed, should make it easy to define things like:

stage.example.com =&gt; RailsEnv &quot;staging&quot;
test.example.com =&gt; RailsEnv &quot;test&quot;
www.example.com =&gt; RailsEnv &quot;production&quot;</description>
		<content:encoded><![CDATA[<p>I&#8217;m going lobby Dreamhost to allow for us to set the RailsEnv string from their interface.</p>
<p>This really is a problem with their api&#8230;and if fixed, should make it easy to define things like:</p>
<p>stage.example.com =&gt; RailsEnv &#8220;staging&#8221;<br />
test.example.com =&gt; RailsEnv &#8220;test&#8221;<br />
<a href="http://www.example.com" rel="nofollow">http://www.example.com</a> =&gt; RailsEnv &#8220;production&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrikant Lokhande</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-10061</link>
		<dc:creator>Shrikant Lokhande</dc:creator>
		<pubDate>Tue, 14 Apr 2009 09:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-10061</guid>
		<description>Change in config/environment.rb

ENV[&#039;RAILS_ENV&#039;] &#124;&#124;= &#039;production&#039;
To 
ENV[&#039;RAILS_ENV&#039;] = &#039;staging&#039;

If you need perticuler staging ENV.

Thanks-
Shrii
--------------------------
lokhande.shrikant@gmail.com</description>
		<content:encoded><![CDATA[<p>Change in config/environment.rb</p>
<p>ENV['RAILS_ENV'] ||= &#8216;production&#8217;<br />
To<br />
ENV['RAILS_ENV'] = &#8216;staging&#8217;</p>
<p>If you need perticuler staging ENV.</p>
<p>Thanks-<br />
Shrii<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<a href="mailto:lokhande.shrikant@gmail.com">lokhande.shrikant@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billee D.</title>
		<link>http://craigjolicoeur.com/blog/set-rails_env-for-phusion-passenger-on-dreamhost/comment-page-1#comment-9545</link>
		<dc:creator>Billee D.</dc:creator>
		<pubDate>Tue, 06 Jan 2009 05:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://craigjolicoeur.com/blog/?p=77#comment-9545</guid>
		<description>Awesome. It&#039;s nice to see little nuggets of useful info about running Rails on specific hosting platforms now. I love DreamHost -- been an avid customer for 4 or more years now -- and after many years of PHP and Java I am really beginning to love the Ruby/Rails combo. And Capistrano makes things so easy to manage from a deployment perspective it&#039;s spooky.

Thanks for sharing! :-)</description>
		<content:encoded><![CDATA[<p>Awesome. It&#8217;s nice to see little nuggets of useful info about running Rails on specific hosting platforms now. I love DreamHost &#8212; been an avid customer for 4 or more years now &#8212; and after many years of PHP and Java I am really beginning to love the Ruby/Rails combo. And Capistrano makes things so easy to manage from a deployment perspective it&#8217;s spooky.</p>
<p>Thanks for sharing! :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

