Commit 86c9e6681765bc92bf06ed49233e7b9b0aec4512

Authored by Sergio Oliveira
1 parent 8a21961f

Updating fab to issue badges

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
fabfile.py
... ... @@ -90,9 +90,11 @@ def deploy(update=False):
90 90  
91 91  
92 92 def load_badges():
  93 +
  94 + run('mkdir -p ~/colab/www/media/badges')
  95 +
93 96 with cd('~/colab/src/'), prefix(WORKON_COLAB):
94   - run('mkdir -p ~/colab/www/static/media/badges')
95   - run('cp ~/colab/badges/* ~/colab/www/static/media/badges/')
  97 + run('cp badger/fixtures/images/*.png ../www/media/badges/')
96 98 run('python manage.py loaddata badger/fixtures/badges.json')
97 99  
98 100  
... ... @@ -133,4 +135,6 @@ def runserver(update_requirements=False):
133 135  
134 136 run('python manage.py syncdb')
135 137 run('python manage.py migrate')
  138 + run('python manage.py loaddata badger/fixtures/badges.json')
  139 + run('python manage.py update_badges')
136 140 run('python manage.py runserver 0.0.0.0:7000')
... ...