From 82075a524034d969af260ede577ce9533ac6f527 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Thu, 3 Aug 2017 11:15:27 +0200
Subject: [PATCH] WIP ansible, add collectstatic step in django deployment

Former-commit-id: 6c632aaf4263a60d8d0a9b20d740b3be5071231f
---
 ansible/deploy.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index 01df34c9..595edc4a 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -16,6 +16,10 @@
   tasks:
   - name: install python requirements
     pip: requirements=/home/ippidb/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
+  - name: collect static files
+    django_manage:
+      command: "collectstatic"
+      app_path: "/home/ippidb/iPPIDB/ippisite"
   - name: create mod_wsgi configuration
     django_manage:
       command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
-- 
GitLab