Skip to content

Commit 0a795c9

Browse files
committed
build: update jinja template npm commands
1 parent 467f860 commit 0a795c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
{% if edxapp_staticfiles_storage_overrides %}
44
{% for override in edxapp_staticfiles_storage_overrides %}
55
sudo -E -H -u {{ edxapp_user }} \
6-
env "PATH=$PATH" "STATICFILES_STORAGE={{ override }}" "STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" "STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \
7-
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
6+
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" \
7+
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
88
{% endfor %}
99
{% else %}
1010
sudo -E -H -u {{ edxapp_user }} \
1111
env "PATH=$PATH" "STATIC_ROOT=/edx/var/edxapp/staticfiles" "STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" "STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \
12-
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
12+
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
1313
{% endif %}
1414

0 commit comments

Comments
 (0)