Merge pull request #12074 from edx/derf/clear_existing_assets_before_copying_new_assets

clear existing assets before copying new assets
This commit is contained in:
Kevin Falcone
2016-04-20 16:18:54 -04:00
5 changed files with 2 additions and 3 deletions

View File

@@ -378,7 +378,7 @@ def collect_assets(systems, settings):
`settings` is the Django settings module to use.
"""
for sys in systems:
sh(django_cmd(sys, settings, "collectstatic --noinput > /dev/null"))
sh(django_cmd(sys, settings, "collectstatic --clear --noinput"))
print("\t\tFinished collecting {} assets.".format(sys))

View File

@@ -28,7 +28,7 @@ EXPECTED_PREPROCESS_ASSETS_COMMAND = (
u" {system}/static/sass/*.scss {system}/static/themed_sass"
)
EXPECTED_COLLECT_STATIC_COMMAND = (
u"python manage.py {system} --settings={asset_settings} collectstatic --noinput > /dev/null"
u"python manage.py {system} --settings={asset_settings} collectstatic --clear --noinput"
)
EXPECTED_CELERY_COMMAND = (
u"python manage.py lms --settings={settings} celery worker --beat --loglevel=INFO --pythonpath=."

View File

@@ -1,3 +1,2 @@
local_repo
remote_repo
staticfiles

View File

View File