Unverified Commit f3d6a97a by David Ormsbee Committed by GitHub

Merge pull request #4366 from edx/ormsbee/unify_asset_compilation

Consolidate edxapp update assets scripts.
parents c516cab1 41e4fbaf
...@@ -887,7 +887,6 @@ edxapp_aa_command: "{% if EDXAPP_SANDBOX_ENFORCE %}aa-enforce{% else %}aa-compla ...@@ -887,7 +887,6 @@ edxapp_aa_command: "{% if EDXAPP_SANDBOX_ENFORCE %}aa-enforce{% else %}aa-compla
edxapp_helper_scripts: edxapp_helper_scripts:
- edxapp-migrate - edxapp-migrate
- edxapp-runserver - edxapp-runserver
- edxapp-update-assets
- edxapp-shell - edxapp-shell
edxapp_environment_default: edxapp_environment_default:
......
...@@ -108,6 +108,16 @@ ...@@ -108,6 +108,16 @@
- install - install
- install:configuration - install:configuration
- name: create script to compile and update assets
template:
src: "edx/bin/edxapp-update-assets.j2"
dest: "{{ COMMON_BIN_DIR }}/edxapp-update-assets"
owner: "{{ edxapp_user }}"
mode: 0755
tags:
- install
- install:configuration
# migrate when the migrate user is overridden in extra vars # migrate when the migrate user is overridden in extra vars
- name: migrate - name: migrate
command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-{{ item }}" command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-{{ item }}"
...@@ -139,10 +149,9 @@ ...@@ -139,10 +149,9 @@
- assets - assets
# Gather assets using paver if possible # Gather assets using paver if possible
- name: "gather {{ item }} static assets with paver" - name: "gather static assets with paver"
command: "{{ COMMON_BIN_DIR }}/edxapp-update-assets-{{ item }}" command: "{{ COMMON_BIN_DIR }}/edxapp-update-assets"
when: celery_worker is not defined and not devstack and item != "lms-preview" when: celery_worker is not defined and not devstack
with_items: "{{ service_variants_enabled }}"
tags: tags:
- gather_static_assets - gather_static_assets
- assets - assets
{% include "edxapp_common.j2" %}
sudo -E -H -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin }}/paver update_assets lms --settings $EDX_PLATFORM_SETTINGS
{% include "edxapp_common.j2" %} {% include "edxapp_common.j2" %}
sudo -E -H -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin }}/paver update_assets cms --settings $EDX_PLATFORM_SETTINGS sudo -E -H -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin }}/paver update_assets --settings $EDX_PLATFORM_SETTINGS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment