view fabfile.py @ 64:aaac975df679

Tweaking the bxslider's pager CSS. Before, with the images, the numbers > 9 were not centered on their circles. Made an attempt to create circles with CSS instead. The higher numbered ones have kind of a flattened top. Not sure how to fix that right now.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 16:32:28 -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')