Commit cdff31d774bd021835cb9e9278075447b90abe3e
1 parent
cc7294a2
Exists in
master
and in
39 other branches
adding task to rebuild search index
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
fabfile.py
... | ... | @@ -90,6 +90,15 @@ def deploy(update=False): |
90 | 90 | sudo('supervisorctl restart all') |
91 | 91 | |
92 | 92 | |
93 | +def rebuild_index(age=None): | |
94 | + with cd('~/colab/src/'), prefix(WORKON_COLAB): | |
95 | + age_arg = '' | |
96 | + if age: | |
97 | + age_arg = '--age={}'.format(age) | |
98 | + | |
99 | + run('python manage.py rebuild_index {}'.format(age_arg)) | |
100 | + | |
101 | + | |
93 | 102 | @with_settings(user='vagrant') |
94 | 103 | def runserver(update_requirements=False): |
95 | 104 | env_created = mkvirtualenv() | ... | ... |