Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat: Add Atlas pull_translations after Makefile fixes
Browse files Browse the repository at this point in the history
This reverts commit 70eb142
and makes the following changes:

- No need to install atlas directly -- the openedx-atlas package
  actually has what we need already.
- After openedx/edx-platform#34306 we
  shouldn't encounter npm issues.
  • Loading branch information
timmc-edx committed Feb 28, 2024
1 parent 1ba584e commit 596aae8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions playbooks/roles/edxapp/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,21 @@
failed_when: "'17017' not in sandbox_test3.stdout"
when: EDXAPP_SANDBOX_ENFORCE

- name: "Pull translations using Atlas (after Python dependencies and Node installed)"
shell: |
set -eu -o pipefail
source {{ edxapp_venv_dir }}/bin/activate
# Use production-like environment and minimal config to avoid needing dev dependencies or full config.
PATH="./bin/:$PATH" DJANGO_SETTINGS_MODULE=lms.envs.production \
LMS_CFG=lms/envs/minimal.yml STUDIO_CFG=lms/envs/minimal.yml \
OPENEDX_ATLAS_PULL=true make pull_translations
args:
executable: /usr/bin/bash
chdir: "{{ edxapp_code_dir }}"
become_user: "{{ edxapp_user }}"
tags:
- install

- name: compiling all py files in the edx-platform repo
shell: "{{ edxapp_venv_bin }}/python -m compileall -q -x '.git/.*|node_modules/.*' {{ edxapp_code_dir }}"
become_user: "{{ edxapp_user }}"
Expand Down

0 comments on commit 596aae8

Please sign in to comment.