Mercurial > public > bravenewsurf
view fabfile.py @ 79:548b9e61bd64
Updated bands.json to include "asset_prefix" tags for all the bands.
Incorporated all the small images from Ferenc into the bands slideshow.
Went through and crushed all the large images to fit within 800x600.
Make sure to "manage.py loaddata bands.json" after picking this up.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Fri, 25 Nov 2011 16:54:59 -0600 |
parents | 1eb4b4072888 |
children | 89d0511cb5c2 |
line wrap: on
line source
from fabric.api import cd, env, local, put, run def update(): """ Runs hg pull -u. """ with cd('/home/var/django-sites/bns/bns/'): run('hg pull -u') 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')