<?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>Paul Maunders &#124; Web log &#187; unfuddle</title>
	<atom:link href="http://www.pyrosoft.co.uk/blog/tag/unfuddle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pyrosoft.co.uk/blog</link>
	<description>Economics, Business, Telecoms, Tech and Gadgets</description>
	<lastBuildDate>Tue, 22 Jun 2010 21:05:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Developing with Subversion, Unfuddle and OSX</title>
		<link>http://www.pyrosoft.co.uk/blog/2009/05/27/developing-with-subversion-unfuddle-and-osx/</link>
		<comments>http://www.pyrosoft.co.uk/blog/2009/05/27/developing-with-subversion-unfuddle-and-osx/#comments</comments>
		<pubDate>Wed, 27 May 2009 09:08:55 +0000</pubDate>
		<dc:creator>Paul Maunders</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[unfuddle]]></category>

		<guid isPermaLink="false">http://www.pyrosoft.co.uk/blog/?p=945</guid>
		<description><![CDATA[Today I&#8217;m going to be helping one of our investment companies, ByteWire set themselves up with a subversion based development environment for their Street Crime game. They will use a straight forward workflow whereby they will develop and test their code locally on their iMacs, commit working code to a subversion repository, and then check [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m going to be helping one of our investment companies, <a href="http://www.bytewire.co.uk">ByteWire</a> set themselves up with a subversion based development environment for their <a href="http://www.street-crime.com">Street Crime</a> game. They will use a straight forward workflow whereby they will develop and test their code locally on their iMacs, commit working code to a subversion repository, and then check out code the live site when they are happy with it.</p>
<p><strong>UNFUDDLE</strong></p>
<p>We&#8217;re going to be using <a href="http://unfuddle.com/">Unfuddle</a> to provide subversion hosting, project management and bug tracking.</p>
<ul>
<li>Create a free unfuddle account, e.g. Bytewire</li>
<li>Set up your first project e.g. Street Crime</li>
<li>Create a repository: http://bytewire.unfuddle.com/svn/bytewire_streetcrime/</li>
</ul>
<p><strong>LOCAL DOMAIN ON OSX</strong></p>
<p>Set-up a local test domain on OS X</p>
<ul>
<li> Add it to the hosts file</li>
</ul>
<pre>printf "127.0.0.1\tstreetcrime\n" | sudo tee -a /etc/hosts</pre>
<ul>
<li>This should now be accessible via http://streetcrime/</li>
</ul>
<p><strong>MAMP</strong></p>
<p>MAMP is an excellent bundle of Apache, MySQL and PHP for use on Macs. These tools do come pre-installed with Leopard by default, but php in particular is missing a fair few modules which you can only really add by re-compiling &#8211; MAMP makes it a lot easier. It installs new versions of PHP, MySQL and Apache alongside the default versions (on different ports), so that both can be run at the same time.</p>
<ul>
<li> Download it from: <a href="http://www.mamp.info/en/downloads/index.html">http://www.mamp.info/en/downloads/index.html</a></li>
<li>Once you have installed it, you can configure it to work with your local test domains.</li>
</ul>
<ol>
<li>
<ul>
<li>Create a folder where the site code will be placed, e.g. /Applications/MAMP/htdocs/streetcrime/http/</li>
</ul>
<ul>
<li>Open up /Applications/MAMP/conf/apache/httpd.conf with a text editor.</li>
</ul>
<ul>
<li>Uncomment the NameVirtualHost line, and add a couple of news lines to define the new virtual host. It should look like:</li>
</ul>
</li>
</ol>
<pre><span style="font-family: Georgia; font-size: small;"><span><span style="font-family: 'Courier New'; font-size: small;"><span>NameVirtualHost *

&lt;VirtualHost *&gt;
DocumentRoot /Applications/MAMP/htdocs/
ServerName localhost
&lt;/VirtualHost&gt;

&lt;VirtualHost *&gt;
DocumentRoot /Applications/MAMP/htdocs/streetcrime/http/
ServerName streetcrime
&lt;/VirtualHost&gt;</span></span></span></span></pre>
<ul>
<li>Restart MAMP through the MAMP control applet or widget. You should then be able to access the site at http://streetcrime:8888/</li>
</ul>
<p><strong>INITIAL COMMIT OF CODE</strong></p>
<ul>
<li>Make the trunk folder inside the repository where your site code will initially be kept.</li>
</ul>
<pre>svn -m '' mkdir http://bytewire.unfuddle.com/svn/bytewire_streetcrime/trunk/</pre>
<ul>
<li>Check out the trunk to your project top level folder</li>
</ul>
<pre>svn co http://bytewire.unfuddle.com/svn/bytewire_streetcrime/trunk/ /sites/street-crime.com/</pre>
<ul>
<li>Check through the folder structure and look for anything that should be excluded:</li>
</ul>
<pre>du -h --max-depth=1 /sites/street-crime.com/http/</pre>
<ul>
<li>Edit the svn:ignore property</li>
</ul>
<pre>svn add /sites/street-crime.com/http/</pre>
<pre>svn propedit svn:ignore /sites/street-crime.com/http/</pre>
<ul>
<li>List the files &amp; folders that you want to ignore, and then save and quit.</li>
</ul>
<pre>PSD
gangster-game-forum
gangster-game-wiki
gangster-game-blog
logs
uploads</pre>
<ul>
<li>Add the remaining files and commit (excluding uploads etc with svn:ignore)</li>
</ul>
<pre>svn add --force /sites/street-crime.com/http/</pre>
<pre>svn commit -m 'Importing main files'</pre>
<p><strong>CHECKING OUT CODE TO THE OSX DEVELOPMENT WORKSTATION</strong></p>
<ul>
<li>Change directory to the folder you set up locally for development.</li>
</ul>
<pre>cd /Applications/MAMP/htdocs/streetcrime/</pre>
<pre>rmdir http</pre>
<pre>svn co http://bytewire.unfuddle.com/svn/bytewire_streetcrime/trunk/ .</pre>
<p><strong>TESTING THE SITE</strong></p>
<ul>
<li>Visit http://streetcrime:8888/ &#8211; it showed a blank page for me. That would suggest error reporting is off, so enable in /Applications/MAMP/conf/php5/php.ini</li>
</ul>
<p><strong><br />
</strong></p>
<p><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pyrosoft.co.uk/blog/2009/05/27/developing-with-subversion-unfuddle-and-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
