Mercurial > public > sg101
view fabfile.py @ 534:98f5facc0030
Clean up the birthday block. Get rid of space between name and comma. Get rid
of bullets.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 27 Dec 2011 01:15:27 +0000 |
parents | 1f92a53db575 |
children | cb298c8eb039 |
line wrap: on
line source
from fabric.api import cd, run PYTHON = '/home/var/django-sites/virtualenvs/sg101/bin/python' WC_DIR = '/home/var/django-sites/virtualenvs/sg101/sg101' PROJ_DIR = WC_DIR + '/gpp' def update(): """ Runs svn update. """ with cd(PROJ_DIR): run('svn up') def collectstatic(): """ Runs the staticfiles collectstatic command to deploy static assets. """ cmd = ('%s manage.py collectstatic ' '--settings=settings.production --noinput') % PYTHON with cd(PROJ_DIR): run(cmd) def touch(): """ Touches the wsgi file to reload the Python code. """ with cd(PROJ_DIR): run('touch apache/sg101.wsgi')