Commit cd1056eb by Jason Bau

Merge pull request #135 from edx/jbau/edxapp-restart

Changing stop/start back to restart now that things work for stanford
parents 0d284539 fd064662
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
with_items: with_items:
- python2.7 - python2.7
- python-pip - python-pip
- python2.7-dev
tags: tags:
- pre_install - pre_install
- install - install
......
...@@ -171,8 +171,7 @@ ...@@ -171,8 +171,7 @@
shell: executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ lms_variant }} rake lms:gather_assets:aws shell: executable=/bin/bash chdir={{ edx_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:
- stop edxapp - restart edxapp
- start edxapp
sudo: yes sudo: yes
sudo_user: www-data sudo_user: www-data
environment: "{{ deploy_environment }}" environment: "{{ deploy_environment }}"
...@@ -187,8 +186,7 @@ ...@@ -187,8 +186,7 @@
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0 shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ edx_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:
- stop edxapp - restart edxapp
- start edxapp
sudo: yes sudo: yes
sudo_user: www-data sudo_user: www-data
environment: "{{ deploy_environment }}" environment: "{{ deploy_environment }}"
...@@ -205,8 +203,7 @@ ...@@ -205,8 +203,7 @@
shell: executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ cms_variant }} rake cms:gather_assets:aws shell: executable=/bin/bash chdir={{ edx_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:
- stop edxapp - restart edxapp
- start edxapp
sudo: yes sudo: yes
sudo_user: www-data sudo_user: www-data
environment: "{{ deploy_environment }}" environment: "{{ deploy_environment }}"
...@@ -218,8 +215,7 @@ ...@@ -218,8 +215,7 @@
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0 shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_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:
- stop edxapp - restart edxapp
- start edxapp
sudo: yes sudo: yes
sudo_user: www-data sudo_user: www-data
environment: "{{ deploy_environment }}" environment: "{{ deploy_environment }}"
...@@ -231,8 +227,7 @@ ...@@ -231,8 +227,7 @@
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
when: check_cms_update_templates.rc == 0 when: check_cms_update_templates.rc == 0
notify: notify:
- stop edxapp - restart edxapp
- start edxapp
sudo: yes sudo: yes
sudo_user: www-data sudo_user: www-data
environment: "{{ deploy_environment }}" environment: "{{ deploy_environment }}"
...@@ -275,17 +270,8 @@ ...@@ -275,17 +270,8 @@
- cms - cms
- syncdb - syncdb
- name: stop edxapp - name: restart edxapp
service: name=edxapp state=stopped service: name=edxapp state=restarted
tags:
- lms
- lms-xml
- lms-preview
- cms
- deploy
- name: start edxapp
service: name=edxapp state=started
tags: tags:
- lms - lms
- lms-xml - lms-xml
......
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