Mercurial > public > bravenewsurf
view fabfile.py @ 35:5992b6b1bcd2
Fix out of date comments and test names in bands and reviews.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 13:55:16 -0600 |
parents | b5329e6ad828 |
children | 1eb4b4072888 |
line wrap: on
line source
from fabric.api import cd, env, local, put, run def up(): """ Runs hg up. """ with cd('/home/var/django-sites/bns/bns/'): run('hg up') def collectstatic(): """ Runs the staticfiles collectstatic command to deploy static assets. """ cmd = ('. ./env.bash && python manage.py collectstatic ' '--settings=settings.production --noinput') with cd('/home/var/django-sites/bns/bns/bns_website/'): run(cmd) def touch(): """ Touches the wsgi file to reload the Python code. """ with cd('/home/var/django-sites/bns/bns/bns_website/'): run('touch apache/bns.wsgi')