From 0a795c96c4d754ea912936642dc94cc892f2f800 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Tue, 26 Nov 2024 15:50:24 +0500 Subject: [PATCH] build: update jinja template npm commands --- .../roles/edxapp/templates/edx/bin/edxapp-update-assets.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2 b/playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2 index 9c5c28549e9..b48dc7de41c 100644 --- a/playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2 +++ b/playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2 @@ -3,12 +3,12 @@ {% if edxapp_staticfiles_storage_overrides %} {% for override in edxapp_staticfiles_storage_overrides %} sudo -E -H -u {{ edxapp_user }} \ - env "PATH=$PATH" "STATICFILES_STORAGE={{ override }}" "STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" "STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \ - npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS + env "PATH=$PATH" "STATICFILES_STORAGE={{ override }}" "STATIC_ROOT=/edx/var/edxapp/staticfiles" "STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" "STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \ + npm run ci && npm run webpack && npm run compile-sass && npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS {% endfor %} {% else %} sudo -E -H -u {{ edxapp_user }} \ env "PATH=$PATH" "STATIC_ROOT=/edx/var/edxapp/staticfiles" "STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" "STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \ - npm run webpack && npm run compile-sass && npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS + npm run ci && npm run webpack && npm run compile-sass && npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --settings=$EDX_PLATFORM_SETTINGS {% endif %} \ No newline at end of file