Commit e7e129e501a7346f0ec91a94fd337a58ee7ebaf5
1 parent
329eac3a
Exists in
master
and in
39 other branches
Removing load_badges from fab
Showing
1 changed file
with
0 additions
and
13 deletions
Show diff stats
fabfile.py
@@ -81,7 +81,6 @@ def deploy(update=False): | @@ -81,7 +81,6 @@ def deploy(update=False): | ||
81 | if update: | 81 | if update: |
82 | update_requirements() | 82 | update_requirements() |
83 | 83 | ||
84 | - load_badges() | ||
85 | with cd('~/colab/src/'), prefix(WORKON_COLAB): | 84 | with cd('~/colab/src/'), prefix(WORKON_COLAB): |
86 | run('python manage.py syncdb') | 85 | run('python manage.py syncdb') |
87 | run('python manage.py migrate') | 86 | run('python manage.py migrate') |
@@ -91,17 +90,6 @@ def deploy(update=False): | @@ -91,17 +90,6 @@ def deploy(update=False): | ||
91 | sudo('supervisorctl restart all') | 90 | sudo('supervisorctl restart all') |
92 | 91 | ||
93 | 92 | ||
94 | -def load_badges(local=False): | ||
95 | - path = '/vagrant/' if local else '~/colab/' | ||
96 | - | ||
97 | - run(u'mkdir -p {}www/media/badges'.format(path)) | ||
98 | - | ||
99 | - with cd(u'{}src/'.format(path)), prefix(WORKON_COLAB): | ||
100 | - run('cp badger/fixtures/images/*.png ../www/media/badges/') | ||
101 | - run('python manage.py loaddata badger/fixtures/badges.json') | ||
102 | - run('python manage.py update_badges') | ||
103 | - | ||
104 | - | ||
105 | def rebuild_index(age=None, batch=None): | 93 | def rebuild_index(age=None, batch=None): |
106 | with cd('~/colab/src/'), prefix(WORKON_COLAB): | 94 | with cd('~/colab/src/'), prefix(WORKON_COLAB): |
107 | age_arg = '' | 95 | age_arg = '' |
@@ -139,5 +127,4 @@ def runserver(update_requirements=False): | @@ -139,5 +127,4 @@ def runserver(update_requirements=False): | ||
139 | 127 | ||
140 | run('python manage.py syncdb') | 128 | run('python manage.py syncdb') |
141 | run('python manage.py migrate') | 129 | run('python manage.py migrate') |
142 | - load_badges(local=True) | ||
143 | run('python manage.py runserver 0.0.0.0:7000') | 130 | run('python manage.py runserver 0.0.0.0:7000') |