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

feat: Pull edxapp translations via Atlas #7128

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions playbooks/roles/edxapp/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,29 @@
- install
- install:app-requirements

# Pulling Atlas translations into the repo needs to happen after
# Python dependencies have been installed. Note: This task leaves the
# git working directory in a "dirty" state.
- name: "Pull translations using Atlas"
shell: |
source "{{ edxapp_venv_dir }}/bin/activate"
make pull_translations
args:
executable: /usr/bin/bash
chdir: "{{ edxapp_code_dir }}"
environment:
# Use production Django settings because otherwise debug_toolbar will be
# referenced and cause an error (we don't have developer Python deps installed.)
EDX_PLATFORM_SETTINGS: production
# Use minimal configs because the real configs aren't installed until
# later in the playbook.
LMS_CFG: lms/envs/minimal.yml
STUDIO_CFG: lms/envs/minimal.yml
OPENEDX_ATLAS_PULL: true
become_user: "{{ edxapp_user }}"
tags:
- install

# If using CAS and you have a function for mapping attributes, install
# the module here. The next few tasks set up the python code sandbox
- name: install CAS attribute module
Expand Down
Loading