<?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>Software and Opinions &#187; wordpress</title>
	<atom:link href="http://ianloic.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianloic.com</link>
	<description>from Ian McKellar</description>
	<lastBuildDate>Sat, 06 Feb 2010 16:07:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://ianloic.com/?pushpress=hub'/>
		<item>
		<title>Give me convenience</title>
		<link>http://ianloic.com/2009/12/29/give-me-convenience/</link>
		<comments>http://ianloic.com/2009/12/29/give-me-convenience/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 12:38:39 +0000</pubDate>
		<dc:creator>Ian McKellar</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[laziness]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ianloic.com/?p=164</guid>
		<description><![CDATA[I used to track WordPress updates, plugin updates and my own manual site changes using git. I wrote a whole post about it. Either fortunately or unfortunately WordPress launched their update framework which is so much easier than what I was doing. I've given up on my old technique and moved to using WordPress' update [...]]]></description>
			<content:encoded><![CDATA[<p>I used to <a href="http://ianloic.com/2008/09/06/tracking-wordpress-using-git/">track</a> WordPress updates, plugin updates and my own manual site changes using git. I wrote a whole post about it. Either fortunately or unfortunately WordPress launched their update framework which is <em>so</em> much easier than what I was doing. I've given up on my old technique and moved to using WordPress' update mechanisms.</p>
<p>Of course what I really want is to be able to white a WordPress plugin that is notified any time an update occurs or a file update completes so that I can automatically track site changes in a SCM, but I don't think that's easy right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianloic.com/2009/12/29/give-me-convenience/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tracking WordPress using Git</title>
		<link>http://ianloic.com/2008/09/06/tracking-wordpress-using-git/</link>
		<comments>http://ianloic.com/2008/09/06/tracking-wordpress-using-git/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 20:40:38 +0000</pubDate>
		<dc:creator>Ian McKellar</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ianloic.com/?p=60</guid>
		<description><![CDATA[Update: I don't do this anymore.
I publish this blog through WordPress, for reasons I've outlined before. I run it with a custom theme and a bunch of plugins though, and I wanted a convenient way to keep my WordPress install up to date without having to reinstall everything all the time. I wanted source control [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: <a href="http://ianloic.com/2009/12/29/give-me-convenience/">I don't do this anymore</a>.</p>
<p>I publish this blog through <a href="http://www.wordpress.org/">WordPress</a>, for reasons I've <a href="http://ianloic.com/2008/01/12/moving-from-drupal-to-wordpress-for-blogging/">outlined before</a>. I run it with a custom theme and a bunch of plugins though, and I wanted a convenient way to keep my WordPress install up to date without having to reinstall everything all the time. I wanted source control for my blog install.</p>
<p>My first attempt involved mirroring WordPress SVN into a <a href="http://git.or.cz/">Git</a> repository on <a href="http://www.github.com/">github</a> so that I had a Git version of the SVN tree (including branches, tags and every checkin separate) and seperate repository holding the changes I'd made for my web site. This eventually failed for two reasons, first the script I was using to mirror the SVN into Git had a habit of failing in bizarre ways and secondly having two repositories confused me.</p>
<p>Yesterday I decided to update my fairly outdated WordPress install, it had been missing security fixes for some time and was one minor version behind. Since tracking SVN hadn't worked I tried a simpler approach, a single Git repository containing a <em>master</em> branch that tracks releases and an <em>ianloic.com</em> branch to track the state of my site.</p>
<p>I set up <em>master</em> with a fresh download of WordPress 2.5 from wordpress.com, created my <em>ianloic.com</em> branch and applied the differences between my site and the <em>2.5</em> SVN tag (for all it's failures my old approach at least let me do this easily). I switched back to the <em>master</em> branch, deleted all the files (leaving my .git directory intact) and unpacked the new WordPress 2.6.1 tarball. I checked that in (to the <em>master</em> branch), tagged it <em>2.6.1</em> and then merged that into my <em>ianloic.com</em> branch. I pushed all that to <a href="http://github.com/ianloic/wordpress/">github</a> and then checked it out on my web server (at <a href="http://www.dreamhost.com/r.cgi?235928">Dreamhost</a>).</p>
<p>Normally with Git you're tracking just the <em>master</em> branch, but I want both <a href="http://github.com/ianloic/wordpress/commits/master"><em>master</em></a> and <a href="http://github.com/ianloic/wordpress/commits/ianloic.com"><em>ianloic.com</em></a> branches to be tracked so my .<em>git/config</em> contains:</p>
<pre>[remote "origin"]
	url = git@github.com:ianloic/wordpress.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[branch "ianloic.com"]
	remote = origin
	merge = refs/heads/ianloic.com</pre>
<p>Now it's easy to track changes that I'm making to my site and update to the latest WordPress without risking losing anything. The process for updating to a new WordPress release is:</p>
<ul>
<li>on my laptop check out the <em>master</em> branch</li>
<li><em>rm</em> all the files except for <em>.git</em> from the directory</li>
<li>unpack the new release into the directory</li>
<li><em>git-add .</em> — now <em>git-status</em> will indicate what has changed, been added or removed</li>
<li><em>git-commit</em> to check in the new version of wordpress</li>
<li><em>git-tag versionnum</em> to tag which version is currently in master</li>
<li><em>git-checkout ianloic.com</em></li>
<li><em>git-merge versionnum</em> to merge the latest version into the site's branch</li>
<li><em>git-push --all --tags</em> to push all the branches and tags to github</li>
<li>on my web server, <em>git-pull</em> to update to the latest release</li>
</ul>
<p>I end up with a tree that looks like this:</p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_62" class="wp-caption aligncenter" style="width: 433px;">
<dt class="wp-caption-dt"><a href="http://ianloic.com/wp-content/uploads/2008/09/qgit.png"><img class="size-full wp-image-62" title="WordPress in Git" src="http://ianloic.com/wp-content/uploads/2008/09/qgit.png" alt="ianloic.com WordPress in Git" width="423" height="241" /></a></dt>
</dl>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ianloic.com/2008/09/06/tracking-wordpress-using-git/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Moving from Drupal to WordPress for blogging</title>
		<link>http://ianloic.com/2008/01/12/moving-from-drupal-to-wordpress-for-blogging/</link>
		<comments>http://ianloic.com/2008/01/12/moving-from-drupal-to-wordpress-for-blogging/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 00:06:03 +0000</pubDate>
		<dc:creator>Ian McKellar</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://scratch.ianloic.com/wordpress/2008/01/12/moving-from-drupal-to-wordpress-for-blogging/</guid>
		<description><![CDATA[I really like Drupal quite a lot. It's powerful and flexible, it's code is clear and well written and it's extension mechanism is one of the best I've ever seen. All this flexibility tends to distract me from actually writing blog posts. So I've moved back to WordPress. If you're reading this over RSS expect [...]]]></description>
			<content:encoded><![CDATA[<p>I really like <a href="http://www.drupal.org/">Drupal</a> quite a lot. It's powerful and flexible, it's code is clear and well written and it's extension mechanism is one of the best I've ever seen. All this flexibility tends to distract me from actually writing blog posts. So I've moved back to <a href="http://www.wordpress.org/">WordPress</a>. If you're reading this over RSS expect the usual disruption.</p>
<p>I first discovered WordPress late in 2003 from Mark Finlay, an Irish GNOME contributor. On December 24th 2003 <a href="http://www.advogato.org/person/sisob/diary/103.html">he posted</a>:</p>
<blockquote><p>Everyone go look at Wordpress: Seriouslessly sexy blogging Software, looks like it's gonna kick MT's ass.</p></blockquote>
<p>I did, and in the end he was right. Unfortunately <a href="http://www.advogato.org/article/741.html">he died</a> January 10th 2004. WordPress always reminds me of the three months when we lost <a href="http://www.gnome.org/start/2.6/notes/rnmemorial.html">Ettore, Chema and Mark</a>.</p>
<p>There were a few scripts around for moving Drupal posts to WordPress but they were all pretty out of date so I took one and updated it. It has a lot of commentary in it. Take a look: <a href="http://scratch.ianloic.com/wordpress/wp-content/uploads/2008/01/drupal-to-wordpress.sql" title="drupal-to-wordpress.sql">drupal-to-wordpress.sql</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianloic.com/2008/01/12/moving-from-drupal-to-wordpress-for-blogging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
