Commit 6609b110cb545deef1d559df1de218c17ca2b8af

Authored by Luan
1 parent 1bff11a6

Adding load_badges to fab

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
@@ -89,6 +89,13 @@ def deploy(update=False): @@ -89,6 +89,13 @@ def deploy(update=False):
89 sudo('supervisorctl restart all') 89 sudo('supervisorctl restart all')
90 90
91 91
  92 +def load_badges():
  93 + put('~/colab/badges', '~/colab/www/static/media/badges')
  94 +
  95 + with cd('~/colab/src/'), prefix(WORKON_COLAB):
  96 + run('python manage.py loaddata badger/fixtures/badges.py')
  97 +
  98 +
92 def rebuild_index(age=None, batch=None): 99 def rebuild_index(age=None, batch=None):
93 with cd('~/colab/src/'), prefix(WORKON_COLAB): 100 with cd('~/colab/src/'), prefix(WORKON_COLAB):
94 age_arg = '' 101 age_arg = ''