Commit bf50b5b8 by Feanil Patel

Un-capitalize variable names.

parent 2c2a033a
......@@ -43,7 +43,7 @@
- deploy
- name: check if django can collect lms static data
shell: SERVICE_VARIANT={{ LMS_VARIANT }} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws
register: check_lms_collect_static
sudo: yes
sudo_user: www-data
......@@ -55,7 +55,7 @@
- deploy
- name: check if django can collect cms static data
shell: SERVICE_VARIANT={{ LMS_VARIANT }} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
register: check_cms_collect_static
sudo: yes
sudo_user: www-data
......@@ -65,7 +65,7 @@
- deploy
- name: check if django can update cms templates
shell: SERVICE_VARIANT={{ CMS_VARIANT }} django-admin.py help update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py help update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
register: check_cms_update_templates
sudo: yes
sudo_user: www-data
......@@ -76,7 +76,7 @@
# Gather lms assets using rake if possible
- name: gather lms static assets with rake
shell: executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ LMS_VARIANT }} rake lms:gather_assets:aws
shell: executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ lms_variant }} rake lms:gather_assets:aws
when: grep_gather_assets.rc == 0
notify:
- restart lms
......@@ -93,7 +93,7 @@
# Gather lms assets using django if necessary(When rake doesn't know how)
- name: gather lms static assets with django
shell: SERVICE_VARIANT={{ LMS_VARIANT }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when: grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
notify:
- restart lms
......@@ -112,7 +112,7 @@
# Gather cms assets using rake if possible
- name: gather cms static assets with rake
# script: gather_assets.sh
shell: executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ CMS_VARIANT }} rake cms:gather_assets:aws
shell: executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ cms_variant }} rake cms:gather_assets:aws
when: grep_gather_assets.rc == 0
notify:
- restart cms
......@@ -124,7 +124,7 @@
- deploy
- name: gather cms static assets with django
shell: SERVICE_VARIANT={{ CMS_VARIANT }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when: grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
notify:
- restart cms
......@@ -136,7 +136,7 @@
- deploy
- name: update cms templates
shell: SERVICE_VARIANT={{ CMS_VARIANT }} django-admin.py update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
when: check_cms_update_templates.rc == 0
notify:
- restart cms
......
# Variables used to deploy the CMS and LMS
LMS_VARIANT: lms
CMS_VARIANT: cms
lms_variant: lms
cms_variant: cms
rbenv_dir: /opt/www/.rbenv
gem_home: /opt/www/.gem
......
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