Mercurial > public > bravenewsurf
annotate fabfile.py @ 51:6c7467599fa9
I added the jquery plugin jplayer to use for playing samples of the album. For now I just used some of the songs linked to by the jplayer demo, but I also picked a couple songs at random from my iTunes library. Rather than add them to the repository I just named them 1.mp3, 1.m4a, 1.ogg and 2.mp3, 2.m4a, 2.ogg and anybody that wants to test the player will have to add some random songs themselves.
I only added the "blue monday" player skin because I personally think it looks the best of the examples they supply, but we could change that or roll our own if needed.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 13 Nov 2011 17:01:36 -0600 |
parents | 1eb4b4072888 |
children | 89d0511cb5c2 |
rev | line source |
---|---|
bgneal@33 | 1 from fabric.api import cd, env, local, put, run |
bgneal@33 | 2 |
bgneal@33 | 3 |
bgneal@36 | 4 def update(): |
bgneal@33 | 5 """ |
bgneal@36 | 6 Runs hg pull -u. |
bgneal@33 | 7 |
bgneal@33 | 8 """ |
bgneal@33 | 9 with cd('/home/var/django-sites/bns/bns/'): |
bgneal@36 | 10 run('hg pull -u') |
bgneal@33 | 11 |
bgneal@33 | 12 |
bgneal@33 | 13 def collectstatic(): |
bgneal@33 | 14 """ |
bgneal@33 | 15 Runs the staticfiles collectstatic command to deploy static assets. |
bgneal@33 | 16 |
bgneal@33 | 17 """ |
bgneal@33 | 18 cmd = ('. ./env.bash && python manage.py collectstatic ' |
bgneal@33 | 19 '--settings=settings.production --noinput') |
bgneal@33 | 20 |
bgneal@33 | 21 with cd('/home/var/django-sites/bns/bns/bns_website/'): |
bgneal@33 | 22 run(cmd) |
bgneal@33 | 23 |
bgneal@33 | 24 |
bgneal@33 | 25 def touch(): |
bgneal@33 | 26 """ |
bgneal@33 | 27 Touches the wsgi file to reload the Python code. |
bgneal@33 | 28 |
bgneal@33 | 29 """ |
bgneal@33 | 30 with cd('/home/var/django-sites/bns/bns/bns_website/'): |
bgneal@33 | 31 run('touch apache/bns.wsgi') |