You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/11/18 21:52:06 UTC
[airavata] branch master updated: AIRAVATA-3273 Defer copying
wsgi.py since it triggers restart
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new 6e21645 AIRAVATA-3273 Defer copying wsgi.py since it triggers restart
6e21645 is described below
commit 6e216453be11f2d659d8948997b58c51f4bf6d76
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Mon Nov 18 14:31:15 2019 -0500
AIRAVATA-3273 Defer copying wsgi.py since it triggers restart
---
dev-tools/ansible/roles/django/tasks/main.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dev-tools/ansible/roles/django/tasks/main.yml b/dev-tools/ansible/roles/django/tasks/main.yml
index 5048c1e..5e54073 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -105,6 +105,8 @@
rsync_opts:
- "--exclude=node_modules"
- "--exclude=.git"
+ # Don't copy over wsgi.py just yet since that triggers a restart of uwsgi
+ - "--exclude=wsgi.py"
# Bug: become_user doesn't work with synchronize: https://github.com/ansible/ansible/issues/29698
rsync_path: "sudo -u {{ user }} rsync"
# become: yes
@@ -226,3 +228,13 @@
key: "{{ gateway_data_store_ssh_public_key }}"
become: yes
when: gateway_data_store_ssh_public_key != ""
+
+- name: Copy the wsgi.py file
+ copy:
+ src: "{{ airavata_django_portal_tempdir.path }}/django_airavata/wsgi.py"
+ dest: "{{ airavata_django_checkout }}/django_airavata/wsgi.py"
+ owner: "{{ user }}"
+ group: "{{ group }}"
+ become: yes
+ notify:
+ - restart uwsgi