Skip to content
Snippets Groups Projects
Commit 82c0206c authored by Omar Al-Ithawi's avatar Omar Al-Ithawi
Browse files

Added messages after assets process steps

parent 68198845
No related branches found
Tags release-2020-01-24-15.46
No related merge requests found
...@@ -187,6 +187,8 @@ def compile_sass(options): ...@@ -187,6 +187,8 @@ def compile_sass(options):
sh(cmd(*parts)) sh(cmd(*parts))
print("\t\tFinished compiling sass.")
def compile_templated_sass(systems, settings): def compile_templated_sass(systems, settings):
""" """
...@@ -196,6 +198,7 @@ def compile_templated_sass(systems, settings): ...@@ -196,6 +198,7 @@ def compile_templated_sass(systems, settings):
""" """
for sys in systems: for sys in systems:
sh(django_cmd(sys, settings, 'preprocess_assets')) sh(django_cmd(sys, settings, 'preprocess_assets'))
print("\t\tFinished preprocessing {} assets.".format(sys))
def process_xmodule_assets(): def process_xmodule_assets():
...@@ -203,6 +206,7 @@ def process_xmodule_assets(): ...@@ -203,6 +206,7 @@ def process_xmodule_assets():
Process XModule static assets. Process XModule static assets.
""" """
sh('xmodule_assets common/static/xmodule') sh('xmodule_assets common/static/xmodule')
print("\t\tFinished processing xmodule assets.")
def restart_django_servers(): def restart_django_servers():
...@@ -216,6 +220,7 @@ def restart_django_servers(): ...@@ -216,6 +220,7 @@ def restart_django_servers():
"touch", 'lms/urls.py', 'cms/urls.py', "touch", 'lms/urls.py', 'cms/urls.py',
)) ))
def collect_assets(systems, settings): def collect_assets(systems, settings):
""" """
Collect static assets, including Django pipeline processing. Collect static assets, including Django pipeline processing.
...@@ -224,6 +229,7 @@ def collect_assets(systems, settings): ...@@ -224,6 +229,7 @@ def collect_assets(systems, settings):
""" """
for sys in systems: for sys in systems:
sh(django_cmd(sys, settings, "collectstatic --noinput > /dev/null")) sh(django_cmd(sys, settings, "collectstatic --noinput > /dev/null"))
print("\t\tFinished collecting {} assets.".format(sys))
@task @task
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment