<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Raymond Law: Capistrano Deployment Recipes</title>
    <link>http://blog.rayvinly.com/articles/2008/08/04/capistrano-deployment-recipes</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Capistrano Deployment Recipes</title>
      <description>&lt;p&gt;&lt;a href="http://dealistic.com/"&gt;Dealistic&lt;/a&gt; was first deployed to &lt;a href="http://www.slicehost.com/"&gt;Slicehost&lt;/a&gt; when we were testing it on staging.  However, I only got the 256 slice and low memory is a big problem for Ruby and Mongrel.  We&amp;#8217;ve moved to &lt;a href="http://www.amazon.com/gp/browse.html?node=201590011"&gt;Amazon &lt;span class="caps"&gt;EC2&lt;/span&gt;&lt;/a&gt; when we launched.  It is running rock solid and we don&amp;#8217;t run out of memory again, at least for now :P&lt;/p&gt;


	&lt;p&gt;As a result of all these, I wrote two &lt;a href="http://www.capify.org/"&gt;Capistrano&lt;/a&gt; recipes for deployment, for both Slicehost and &lt;span class="caps"&gt;EC2&lt;/span&gt;.  We also use &lt;a href="http://github.com/"&gt;GitHub&lt;/a&gt; for version control.  I think these deployment recipes may be helpful to others.  So here they are:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://blog.rayvinly.com/shared/deploy_slicehost.rb"&gt;deploy.rb for Slicehost&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://blog.rayvinly.com/shared/deploy_ec2.rb"&gt;deploy.rb for &lt;span class="caps"&gt;EC2&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;We wrote some custom Capistrano tasks to copy over configuration files, symlink plugins, start/stop &lt;a href="http://backgroundrb.rubyforge.org/"&gt;BackgrounDRb&lt;/a&gt;, and a custom maintenance page.  But these things are optional.  It should be simple to add/remove things as you see fit.&lt;/p&gt;</description>
      <pubDate>Mon, 04 Aug 2008 17:30:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:f24253c2-5880-49fb-8e78-8d74075c0cbb</guid>
      <author>Raymond Law</author>
      <link>http://blog.rayvinly.com/articles/2008/08/04/capistrano-deployment-recipes</link>
      <category>Entrepreneurship</category>
      <category>Git</category>
      <category>Dealistic</category>
      <category>Ruby on Rails</category>
      <category>Web 2.0</category>
      <category>ruby</category>
      <category>rails</category>
      <category>rubyonrails</category>
      <category>dealistic</category>
      <category>slicehost</category>
      <category>amazon</category>
      <category>ec2</category>
      <category>capistrano</category>
      <category>github</category>
      <trackback:ping>http://blog.rayvinly.com/articles/trackback/69</trackback:ping>
    </item>
  </channel>
</rss>
