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 2020/02/19 18:17:13 UTC
[airavata] 01/02: AIRAVATA-3290 Automatically call set_wagtail_site
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
commit 3ea326faf318390b4f7475af420ace0ff96d8a24
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Feb 19 12:59:01 2020 -0500
AIRAVATA-3290 Automatically call set_wagtail_site
---
dev-tools/ansible/roles/django/tasks/main.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dev-tools/ansible/roles/django/tasks/main.yml b/dev-tools/ansible/roles/django/tasks/main.yml
index 9ad5cee..2e8124b 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -174,6 +174,17 @@
become: yes
become_user: "{{user}}"
+- name: Run Django's manage.py set_wagtail_site based on hostname
+ django_manage:
+ command: set_wagtail_site
+ app_path: "{{ airavata_django_checkout }}"
+ virtualenv: "{{ django_venv_dir }}"
+ become: yes
+ become_user: "{{user}}"
+ # if there are no Django Portal pages in Wagtail, then this command fails,
+ # but we can ignore it until Wagtail pages are created
+ ignore_errors: yes
+
- name: Run Django's manage.py collectstatic
django_manage:
command: "collectstatic -i node_modules --noinput"