Skip to content

Commit f3f262a

Browse files
authored
Merge pull request #108 from edx/fix-npm-bin-path
build: update npm path in edxapp pipeline
2 parents d2ef957 + d6f3cee commit f3f262a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
{% for override in edxapp_staticfiles_storage_overrides %}
55
sudo -E -H -u {{ edxapp_user }} \
66
env "PATH=$PATH" "STATICFILES_STORAGE={{ override }}" \
7-
{{ edxapp_venv_bin }}/npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS
7+
npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS
88
{% endfor %}
99
{% else %}
1010
sudo -E -H -u {{ edxapp_user }} \
1111
env "PATH=$PATH" \
12-
{{ edxapp_venv_bin }}/npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS
12+
npm run build && {{ edxapp_venv_bin }}/python manage.py lms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS && {{ edxapp_venv_bin }}/python manage.py cms collectstatic --noinput --debug-collect --settings=$EDX_PLATFORM_SETTINGS
1313
{% endif %}
1414

0 commit comments

Comments
 (0)