@@ -0,0 +1,807 @@
+from fabric.api import *%0Afrom fabric.colors import *%0A%0Aenv.colorize_errors = True%0Aenv.hosts           = %5B'sanaprotocolbuilder.me'%5D%0Aenv.user            = 'root'%0Aenv.project_root    = '/opt/sana.protocol_builder'%0A%0Adef prepare_deploy():%0A    local('python sana_builder/manage.py syncdb')%0A    local('python sana_builder/manage.py test')%0A    local('git push')%0A%0Adef deploy():%0A    with cd(env.project_root), prefix('workon sana_protocol_builder'):%0A        print(green('Pulling latest revision...'))%0A        run('git pull')%0A%0A        print(green('Installing dependencies...'))%0A        run('pip install -qr requirements.txt')%0A%0A        print(green('Migrating database...'))%0A        run('python sana_builder/manage.py syncdb')%0A%0A        print(green('Restarting gunicorn...'))%0A        run('supervisorctl restart gunicorn')%0A

Add a fabfile.