Commit 8412f50f by John Jarvis

updating naming convention for handlers

parent 3ca28f59
---
- name: start edxapp
- name: edxapp | start edxapp
service: name=edxapp state=started
tags:
- lms
......@@ -7,7 +7,7 @@
- cms
- deploy
- name: stop edxapp
- name: edxapp | stop edxapp
service: name=edxapp state=stopped
tags:
- lms
......@@ -15,7 +15,7 @@
- cms
- deploy
- name: restart edxapp
- name: edxapp | restart edxapp
service: name=edxapp state=restarted
tags:
- lms
......
......@@ -157,13 +157,25 @@
tags:
- 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
- name: gather lms static assets with rake
shell: SERVICE_VARIANT={{ edxapp_lms_variant }} rake lms:gather_assets:aws
executable=/bin/bash
chdir={{ edxapp_code_dir }}
notify:
- restart edxapp
- edxapp | restart edxapp
sudo_user: "{{ edxapp_user }}"
when: celery_worker is not defined
environment: "{{ edxapp_deploy_environment }}"
......@@ -174,7 +186,7 @@
- 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
notify:
- restart edxapp
- edxapp | restart edxapp
sudo_user: "{{ edxapp_user }}"
when: celery_worker is not defined
environment: "{{ edxapp_deploy_environment }}"
......@@ -192,18 +204,6 @@
tags:
- 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
service: name=edxapp state=restarted
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