view fabfile.py @ 43:9936cae358d9

I removed some unused clutter from the news_list.html template. I moved the date to the title line, which looks a lot better I think. I made the space between articles 2em and added a border at the top of each article. I'm not sure I like it, but it's better I think.
author Bob Mourlam <bob.mourlam@gmail.com>
date Mon, 07 Nov 2011 21:22:12 -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')