Commit 8412f50f by John Jarvis

updating naming convention for handlers

parent 3ca28f59
--- ---
- name: start edxapp - name: edxapp | start edxapp
service: name=edxapp state=started service: name=edxapp state=started
tags: tags:
- lms - lms
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- cms - cms
- deploy - deploy
- name: stop edxapp - name: edxapp | stop edxapp
service: name=edxapp state=stopped service: name=edxapp state=stopped
tags: tags:
- lms - lms
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
- cms - cms
- deploy - deploy
- name: restart edxapp - name: edxapp | restart edxapp
service: name=edxapp state=restarted service: name=edxapp state=restarted
tags: tags:
- lms - lms
......
...@@ -157,13 +157,25 @@ ...@@ -157,13 +157,25 @@
tags: tags:
- deploy - deploy
- name: syncdb and migrate
shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin}}/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- deploy
- name: db migrate
shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when: migrate_only is defined and migrate_only|lower == "yes"
tags:
- deploy
# 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: SERVICE_VARIANT={{ edxapp_lms_variant }} rake lms:gather_assets:aws shell: SERVICE_VARIANT={{ edxapp_lms_variant }} rake lms:gather_assets:aws
executable=/bin/bash executable=/bin/bash
chdir={{ edxapp_code_dir }} chdir={{ edxapp_code_dir }}
notify: notify:
- restart edxapp - edxapp | restart edxapp
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
when: celery_worker is not defined when: celery_worker is not defined
environment: "{{ edxapp_deploy_environment }}" environment: "{{ edxapp_deploy_environment }}"
...@@ -174,7 +186,7 @@ ...@@ -174,7 +186,7 @@
- name: gather cms static assets with rake - name: gather cms static assets with rake
shell: executable=/bin/bash chdir={{ edxapp_code_dir }} SERVICE_VARIANT={{ edxapp_cms_variant }} rake cms:gather_assets:aws shell: executable=/bin/bash chdir={{ edxapp_code_dir }} SERVICE_VARIANT={{ edxapp_cms_variant }} rake cms:gather_assets:aws
notify: notify:
- restart edxapp - edxapp | restart edxapp
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
when: celery_worker is not defined when: celery_worker is not defined
environment: "{{ edxapp_deploy_environment }}" environment: "{{ edxapp_deploy_environment }}"
...@@ -192,18 +204,6 @@ ...@@ -192,18 +204,6 @@
tags: tags:
- deploy - deploy
- name: syncdb and migrate
shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- deploy
- name: db migrate
shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when: migrate_only is defined and migrate_only|lower == "yes"
tags:
- deploy
- name: restart edxapp - name: restart edxapp
service: name=edxapp state=restarted service: name=edxapp state=restarted
when: celery_worker is not defined when: celery_worker is not defined
......
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