<?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>Brightbox Blog &#187; recipes</title>
	<atom:link href="http://blog.brightbox.co.uk/tag/recipes/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.brightbox.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 02 Dec 2011 12:56:25 +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>Brightbox Gem v2.3.6 released</title>
		<link>http://blog.brightbox.co.uk/posts/brightbox-gem-v2-3-6-released</link>
		<comments>http://blog.brightbox.co.uk/posts/brightbox-gem-v2-3-6-released#comments</comments>
		<pubDate>Wed, 27 Jan 2010 08:41:21 +0000</pubDate>
		<dc:creator>Caius Durling</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[brightbox]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[recipes]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.brightbox.co.uk/?p=921</guid>
		<description><![CDATA[Today I’m pleased to announce a new revision of the Brightbox Deployment Gem, version 2.3.6. This release fixes some of the issues reported to us by our users, along with a few extra features. The documentation on the wiki has been updated with the new fixes and features. If you have any tips or find [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright right size-full wp-image-70" title="Brightbox gem" src="http://blog.brightbox.co.uk/wp-content/uploads/2008/05/brightbox_gem.png" alt="" width="221" height="105" /></p>
<p>Today I’m pleased to announce a new revision of the Brightbox Deployment Gem, version 2.3.6. This release fixes some of the issues reported to us by our users, along with a few extra features.</p>
<p>The documentation <a href="http://wiki.brightbox.co.uk/docs:thebrightboxgemv2">on the wiki</a> has been updated with the new fixes and features. If you have any tips or find any errors just let us know.</p>
<p><span style="color: #888888;">NEW FEATURES</span></p>
<h3 id="apt_package_dependencies">Apt Package Dependencies</h3>
<p>Just as you can currently define gems your application relies on and have them automatically installed onto your servers, you can now do the same with apt packages. Define them in your <code>deploy.rb</code> and they’ll be installed <em>before</em> installing your required rubygems, which means you can use it to install apt packages that gems depend on. As an example, the nokogiri gem depends on a couple of apt packages.</p>
<pre><code>depend :remote, :apt, "libxml2-dev"
depend :remote, :apt, "libxslt1-dev"
depend :remote, :gem, "nokogiri", "&gt;= 0"
</code></pre>
<h3 id="intermediate_ssl_certificates">Intermediate SSL Certificates</h3>
<p>Support for Intermediate SSL Certificates in Apache has been added, meaning you no longer need to manually edit the Apache config files directly. Just add one line to your <code>deploy.rb</code> and the gem now takes care of updating the Apache config for you. An example SSL configuration:</p>
<pre><code>set :ssl_certificate, "my_cert.pem"
set :ssl_key, "my_cert.key"
set :ssl_intermediate, "intermediate.crt"
</code></pre>
<p>See the wiki page for <a href="http://wiki.brightbox.co.uk/docs:gemv2:ssl#intermediate_certificate">Adding SSL Support to Apache</a> for more information.</p>
<h3 id="deploylocalrb">Deploy.local.rb</h3>
<p>A common issue we’ve seen with is setting the deploy password. If you put it in <code>deploy.rb</code>, then it inevitably ends up in your source control repository, which is a bad idea. A workaround we’ve suggested in the past is to have a <code>deploy.local.rb</code> file, which isn’t tracked by source control, and load that from within your <code>deploy.rb</code> file. This allows you to have the password (or any other sensitive settings) defined, but kept outside your source control.</p>
<p>As part of this release, the gem now has official support for a <code>deploy.local.rb</code> file. If it exists, the gem will load it in for you.</p>
<p>For more information see the <a href="http://wiki.brightbox.co.uk/docs:gemv2:advancedgemsettings#deploy.local.rb">Advanced Gem Settings</a> page on the wiki.</p>
<h3 id="disable_regenerating_webserver_config">Disable (re)generating webserver config</h3>
<p>If you’ve made manual changes to your webserver (apache or nginx) configuration, then you don’t want an accidental <code>deploy:setup</code> to overwrite your configs. Up until now you just had to avoid running the command, but now there’s a setting to disable it for you.</p>
<pre><code>set :generate_webserver_config, false
</code></pre>
<p><span style="color: #888888;">FIXES AND ENHANCEMENTS</span></p>
<ul>
<li><a href="http://wiki.brightbox.co.uk/docs:gemv2:staticcache">Max Age</a> setting now accepts a number as well as a string</li>
<li>deploy:initial reloads Apache so the new config is loaded</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://blog.brightbox.co.uk/posts/brightbox-gem-v2-3-6-released/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

