Commit b9dad2f8 by Feanil Patel

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

parent 2d00e94c
......@@ -16,7 +16,7 @@
- deploy
# 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}}
tags:
- lms
......@@ -224,6 +224,17 @@
- cms
- 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
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