From 56b9ed4e9432b56251d4c6155599dcf3b643a762 Mon Sep 17 00:00:00 2001 From: Tobias Macey Date: Mon, 25 Mar 2024 16:29:35 -0400 Subject: [PATCH] config: Run CMS translations fetches as a separate block --- dockerfiles/openedx-edxapp/Earthfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfiles/openedx-edxapp/Earthfile b/dockerfiles/openedx-edxapp/Earthfile index f45e11724..9d71c0e31 100644 --- a/dockerfiles/openedx-edxapp/Earthfile +++ b/dockerfiles/openedx-edxapp/Earthfile @@ -133,16 +133,16 @@ fetch-translations: ## pull xblock translations via atlas python manage.py lms pull_xblock_translations $OPENEDX_ATLAS_OPTIONS && \ python manage.py lms compile_xblock_translations && \ - python manage.py cms compile_xblock_translations && \ ## pull translations via atlas atlas pull $OPENEDX_ATLAS_OPTIONS \ translations/edx-platform/conf/locale:conf/locale \ - translations/studio-frontend/src/i18n/messages:conf/plugins-locale/studio-frontend && \ python manage.py lms compilemessages && \ python manage.py lms compilejsi18n && \ - python manage.py cms compilejsi18n && \ - python manage.py lms collectstatic && \ - python manage.py cms collectstatic + ENV DJANGO_SETTINGS_MODULE cms.envs.mitol.i18n + RUN python manage.py cms compile_xblock_translations && \ + atlas pull $OPENEDX_ATLAS_OPTIONS \ + translations/studio-frontend/src/i18n/messages:conf/plugins-locale/studio-frontend && \ + python manage.py cms compilejsi18n ENV DJANGO_SETTINGS_MODULE lms.envs.production SAVE ARTIFACT /openedx/edx-platform /edx-platform