Commit bf50b5b8 by Feanil Patel

Un-capitalize variable names.

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