Commit caeb1546 by Feanil Patel

Restart alton if the code changes.

parent 7ba6be16
...@@ -35,7 +35,7 @@ alton_venv_dir: "{{ alton_venvs_dir }}/alton" ...@@ -35,7 +35,7 @@ alton_venv_dir: "{{ alton_venvs_dir }}/alton"
alton_venv_bin: "{{ alton_venv_dir }}/bin" alton_venv_bin: "{{ alton_venv_dir }}/bin"
alton_source_repo: "https://github.com/edx/alton.git" alton_source_repo: "https://github.com/edx/alton.git"
alton_version: "HEAD" alton_version: "feanil/inspect_aws"
alton_requirements_file: "{{ alton_code_dir }}/requirements.txt" alton_requirements_file: "{{ alton_code_dir }}/requirements.txt"
alton_supervisor_wrapper: "{{ alton_app_dir }}/alton-supervisor.sh" alton_supervisor_wrapper: "{{ alton_app_dir }}/alton-supervisor.sh"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
dest="{{ alton_code_dir }}" repo="{{ alton_source_repo }}" dest="{{ alton_code_dir }}" repo="{{ alton_source_repo }}"
version="{{ alton_version }}" accept_hostkey=yes version="{{ alton_version }}" accept_hostkey=yes
sudo_user: "{{ alton_user }}" sudo_user: "{{ alton_user }}"
notify: restart alton
- name: install the requirements - name: install the requirements
pip: > pip: >
...@@ -11,6 +12,7 @@ ...@@ -11,6 +12,7 @@
state=present state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}"
sudo_user: "{{ alton_user }}" sudo_user: "{{ alton_user }}"
notify: restart alton
- name: create the supervisor wrapper - name: create the supervisor wrapper
template: > template: >
......
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