comparison fabfile.py @ 36:1eb4b4072888

More useful to do a pull -u than an update in the fabric file.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Nov 2011 14:19:12 -0600
parents b5329e6ad828
children 89d0511cb5c2
comparison
equal deleted inserted replaced
35:5992b6b1bcd2 36:1eb4b4072888
1 from fabric.api import cd, env, local, put, run 1 from fabric.api import cd, env, local, put, run
2 2
3 3
4 def up(): 4 def update():
5 """ 5 """
6 Runs hg up. 6 Runs hg pull -u.
7 7
8 """ 8 """
9 with cd('/home/var/django-sites/bns/bns/'): 9 with cd('/home/var/django-sites/bns/bns/'):
10 run('hg up') 10 run('hg pull -u')
11 11
12 12
13 def collectstatic(): 13 def collectstatic():
14 """ 14 """
15 Runs the staticfiles collectstatic command to deploy static assets. 15 Runs the staticfiles collectstatic command to deploy static assets.