Commit b9dad2f8 by Feanil Patel

Add a rule to run just migrations(no syncdb).

parent 2d00e94c
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
- deploy - deploy
# Do A Checkout # Do A Checkout
- name: git checkout edx-platform repo into $app_base_dir - name: edxapp | checkout edx-platform repo into {{edx_platform_code_dir}}
git: dest={{edx_platform_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}} git: dest={{edx_platform_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}}
tags: tags:
- lms - lms
...@@ -224,6 +224,17 @@ ...@@ -224,6 +224,17 @@
- cms - cms
- syncdb - syncdb
- name: db migrate
shell: sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when: migrate_only is defined and migrate_only|lower == "yes"
tags:
- deploy
- lms
- lms-xml
- lms-preview
- cms
- syncdb
- 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