<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h3&gt;Tools Needed:&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Python 2.6.2 &amp;#8211; &lt;a href=&quot;http://www.python.org/ftp/python/2.6.2/python-2.6.2-macosx2009-04-16.dmg&quot;&gt;Download for Mac OS X&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;For Mac, make sure &lt;code&gt;/Library/Frameworks/Python.framework/Versions/current&lt;/code&gt; is symlinked to &lt;code&gt;/Library/Frameworks/Python.framework/Versions/2.6&lt;/code&gt; and is in your &lt;code&gt;$PATH&lt;/code&gt; variable.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;Django 1.1 &amp;#8211; &lt;a href=&quot;http://www.djangoproject.com/download/1.1/tarball/&quot;&gt;Download&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;pre&gt;&lt;code&gt;tar xzvf Django-1.1.tar.gz
cd Django-1.1
sudo python setup.py install&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;Git &amp;#8211; &lt;a href=&quot;http://help.github.com/mac-git-installation/&quot;&gt;How to install git on mac&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Fabric 0.9b1
	&lt;ul&gt;
		&lt;li&gt;For Mac see [[Installing Fabric for Python 2.6 on Mac OS X]]&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;South &amp;#8211; &lt;a href=&quot;http://www.aeracode.org/releases/south/south-0.6.1.tar.gz&quot;&gt;Download&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;pre&gt;&lt;code&gt;tar xzvf south-0.6.1.tar.gz
cd south-0.6.1
sudo python setup.py install&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;SQLite3 (should come bundled with Python 2.5)&lt;br /&gt;
Or you could use MacPorts for all of those :)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Setting up:&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;Check out the code: &lt;code&gt;git clone git@github.com:highwind/pisces.git pisces&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Run database migration: &lt;code&gt;python manage.py migrate&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Check the connection to the test server:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;$ fab test ping
Testing connection...
Password for piscesr@pisces.kgfamily.com: 
[pisces.kgfamily.com] run: uname -monisr
[pisces.kgfamily.com] out: Linux celes 2.6.18-xen x86_64 AuthenticAMD GNU/Linux
Done.
Disconnecting from pisces.kgfamily.com... done.&lt;/code&gt;&lt;/pre&gt; If you do not want to manually input the password, &lt;code&gt;ssh&lt;/code&gt; into the server and add your &lt;code&gt;id_rsa.pub&lt;/code&gt; to the file &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Before starting your day:&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;Always pull the nightly code before working. &lt;pre&gt;&lt;code&gt;$ git pull origin master&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Pushing the code out to Test machine:&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;Make sure your code passes all the unit tests&lt;/li&gt;
	&lt;li&gt;Do the following: &lt;pre&gt;&lt;code&gt;$ git commit                 # Commit your code to your master tree
$ git push origin master     # Push the code to the github repository
$ fab test update            # Update the test server's code
$ fab test syncdb            # Sync the database if needed
$ fab test runtest           # Run unit test on the test serer
$ fab test restart           # Restart the test server&amp;lt;/pre&amp;gt;&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Visit: &lt;a href=&quot;http://pisces.kgfamily.com/&quot;&gt;http://pisces.kgfamily.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Emacs Tip:&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;for .emacs python indentation&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;(setq python-mode-hook
    '(lambda () (progn
        (set-variable 'py-indent-offset 4)
        (set-variable 'py-smart-indentation nil)
        (set-variable 'indent-tabs-mode nil) )))&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;</body>
  <created-at type="datetime">2009-12-26T19:44:46-08:00</created-at>
  <id type="integer">327469</id>
  <permalink>development-environment</permalink>
  <repository-id type="integer">304767</repository-id>
  <title>Development Environment</title>
  <updated-at type="datetime">2009-10-21T05:42:59-07:00</updated-at>
  <user-id type="integer">2306</user-id>
</wiki>
