Skip to content

Commit

Permalink
build: update compil-sass theme-dir flags
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Dec 3, 2024
1 parent e6162fc commit baa64ef
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions playbooks/roles/edxapp/templates/edx/bin/edxapp-update-assets.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@
{% for override in edxapp_staticfiles_storage_overrides %}
sudo -E -H -u {{ edxapp_user }} \
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 install \
&& npm run webpack \
&& npm run compile-sass \
&& npm run compile-sass -- --theme-dir /edx/var/edx-themes/edx-themes/edx-platform --theme-dir /edx/app/edxapp/edx-platform/themes \
&& {{ 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" \
"STATICFILES_STORAGE=django.contrib.staticfiles.storage.StaticFilesStorage" \
"STATIC_ROOT=/edx/var/edxapp/staticfiles" \
"STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" \
"STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \
npm install \
&& npm run webpack \
&& npm run compile-sass \
&& npm run compile-sass -- --theme-dir /edx/var/edx-themes/edx-themes/edx-platform --theme-dir /edx/app/edxapp/edx-platform/themes \
&& {{ 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 %}

0 comments on commit baa64ef

Please sign in to comment.