<?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: Handling a staging environment with capistrano / rails</title>
	<atom:link href="http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/</link>
	<description>About ruby, rails, postgresql and stuff....</description>
	<lastBuildDate>Mon, 19 Sep 2011 10:15:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Evan Reeves</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-11488</link>
		<dc:creator>Evan Reeves</dc:creator>
		<pubDate>Thu, 21 Apr 2011 01:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-11488</guid>
		<description>I don&#039;t think that Capistrano supports role definition within tasks as of version 2.5.21. I tried to configure my tasks similarly and received errors when trying to define my roles in a similar manner.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think that Capistrano supports role definition within tasks as of version 2.5.21. I tried to configure my tasks similarly and received errors when trying to define my roles in a similar manner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Peter Berntsen</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-4077</link>
		<dc:creator>Thomas Peter Berntsen</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-4077</guid>
		<description>Thanks very much for the elegant and useful solution.</description>
		<content:encoded><![CDATA[<p>Thanks very much for the elegant and useful solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Stjernström</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-3781</link>
		<dc:creator>Mathias Stjernström</dc:creator>
		<pubDate>Mon, 05 Oct 2009 17:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-3781</guid>
		<description>Thanks Zeeshan! 

Thats a great addition! 

Sheers!</description>
		<content:encoded><![CDATA[<p>Thanks Zeeshan! </p>
<p>Thats a great addition! </p>
<p>Sheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeeshan</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-3778</link>
		<dc:creator>Zeeshan</dc:creator>
		<pubDate>Sun, 04 Oct 2009 22:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-3778</guid>
		<description>To add warning/notice if you do not specify either production/staging stage, one can do following:

#####################################
...
set :stage, nil
...

task :before_deploy do
    abort &quot;ERROR: No stage specified. Please specify one of: staging, production (e.g. `cap staging deploy&#039;)&quot; if stage.nil?
end

desc &quot;Run tasks in production enviroment.&quot;
task :production do
  # Production nodes
     set :stage, &quot;production&quot;
    ...
end

desc &quot;Run tasks in staging enviroment.&quot;
task :staging do
    set :stage, &quot;staging&quot;
    ...
end

#####################################</description>
		<content:encoded><![CDATA[<p>To add warning/notice if you do not specify either production/staging stage, one can do following:</p>
<p>#####################################<br />
&#8230;<br />
set :stage, nil<br />
&#8230;</p>
<p>task :before_deploy do<br />
    abort &#8220;ERROR: No stage specified. Please specify one of: staging, production (e.g. `cap staging deploy&#8217;)&#8221; if stage.nil?<br />
end</p>
<p>desc &#8220;Run tasks in production enviroment.&#8221;<br />
task :production do<br />
  # Production nodes<br />
     set :stage, &#8220;production&#8221;<br />
    &#8230;<br />
end</p>
<p>desc &#8220;Run tasks in staging enviroment.&#8221;<br />
task :staging do<br />
    set :stage, &#8220;staging&#8221;<br />
    &#8230;<br />
end</p>
<p>#####################################</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Stjernström</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-1665</link>
		<dc:creator>Mathias Stjernström</dc:creator>
		<pubDate>Thu, 18 Jun 2009 08:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-1665</guid>
		<description>Superb! 

Glad I could help.</description>
		<content:encoded><![CDATA[<p>Superb! </p>
<p>Glad I could help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-1651</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 17 Jun 2009 22:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-1651</guid>
		<description>Ah, got it. Thanks Mathias!</description>
		<content:encoded><![CDATA[<p>Ah, got it. Thanks Mathias!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Stjernström</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-1630</link>
		<dc:creator>Mathias Stjernström</dc:creator>
		<pubDate>Wed, 17 Jun 2009 06:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-1630</guid>
		<description>Hi Jason,

Thanks for your comment. My solution to multiple deploy targets is not dependent on the multistage plugin/gem. Maybe I was to unclear in my post.

If you have any references in your deploy.rb to the multistage plugins try comment those out or uninstall the multistage plugin and I thing you will be fine. 

If you do want to use the multistage plugin you can follow the instructions on Jamis blog here: http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Jason,</p>
<p>Thanks for your comment. My solution to multiple deploy targets is not dependent on the multistage plugin/gem. Maybe I was to unclear in my post.</p>
<p>If you have any references in your deploy.rb to the multistage plugins try comment those out or uninstall the multistage plugin and I thing you will be fine. </p>
<p>If you do want to use the multistage plugin you can follow the instructions on Jamis blog here: <a href="http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage" rel="nofollow">http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage</a></p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/comment-page-1/#comment-1623</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 17 Jun 2009 02:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pastbedti.me/?p=342#comment-1623</guid>
		<description>I like what you&#039;ve done and implemented it. However, I&#039;ve run into an issue when attempting to use it. The warning prompt displays, but the multistage plugin complains about no stage being specified.

&lt;code&gt;
* == Currently executing `multistage:ensure&#039;
No stage specified. Please specify one of: staging, beta, production (e.g. `cap staging deploy&#039;)
&lt;/code&gt;

Any ideas?</description>
		<content:encoded><![CDATA[<p>I like what you&#8217;ve done and implemented it. However, I&#8217;ve run into an issue when attempting to use it. The warning prompt displays, but the multistage plugin complains about no stage being specified.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">* == Currently executing `multistage:ensure'<br />
No stage specified. Please specify one of: staging, beta, production (e.g. `cap staging deploy')</div></td></tr></tbody></table></div>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

