Commit 6609b110cb545deef1d559df1de218c17ca2b8af
1 parent
1bff11a6
Exists in
master
and in
39 other branches
Adding load_badges to fab
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
fabfile.py
| ... | ... | @@ -89,6 +89,13 @@ def deploy(update=False): |
| 89 | 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 | 99 | def rebuild_index(age=None, batch=None): |
| 93 | 100 | with cd('~/colab/src/'), prefix(WORKON_COLAB): |
| 94 | 101 | age_arg = '' | ... | ... |