<?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>Gunfist &#187; capistrano</title>
	<atom:link href="http://www.gunfist.com/tag/capistrano/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gunfist.com</link>
	<description></description>
	<lastBuildDate>Wed, 23 Dec 2009 20:08:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Production and Staging with Capistrano</title>
		<link>http://www.gunfist.com/techy/2008/08/production-and-staging-with-capistrano/</link>
		<comments>http://www.gunfist.com/techy/2008/08/production-and-staging-with-capistrano/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 19:08:43 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[staging]]></category>

		<guid isPermaLink="false">http://www.gunfist.com/?p=469</guid>
		<description><![CDATA[For the benefit of googlers, should you happen to be wanting to use the very good Capistrano to deploy your project, and want to switch between staging or pre-production and live or production environments, the best way to handle the switch is using the Multistage facility in capistrano-ext. It&#8217;s basically just &#8216;gem install capistrano-ext&#8217;, then [...]]]></description>
			<content:encoded><![CDATA[<p>For the benefit of googlers, should you happen to be wanting to use the very good <a href="http://www.capify.org/">Capistrano</a> to deploy your project, and want to switch between staging or pre-production and live or production environments, the best way to handle the switch is using the <a href="http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage">Multistage</a> facility in capistrano-ext.</p>
<p>It&#8217;s basically just &#8216;gem install capistrano-ext&#8217;, then at the top of your deploy.rb do something like:</p>
<p>set :stages, %w(ppd live dev) # you can use as many stages with whatever names you want here<br />
require &#8216;capistrano/ext/multistage&#8217;</p>
<p>In the config directory create deploy/ppd.rb, deploy/live.rb and deploy/dev.rb and put in the deploy specific stuff into each one &#8211; all your tasks can still be defined in the main deploy.rb. My stage rb files are just a bunch of sets and roles (which can&#8217;t be set in tasks), and they work brilliantly.</p>
<p>Now when you try to do &#8216;cap deploy&#8217;, it will moan and say you must give it a target: &#8220;No stage specified. Please specify one of: ppd, live, dev (e.g. `cap ppd deploy&#8217;)&#8221;. Do that, and you&#8217;re away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gunfist.com/techy/2008/08/production-and-staging-with-capistrano/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

