From d05d1d2a612a486361615b8d24e84daa004b67c1 Mon Sep 17 00:00:00 2001 From: Eduardo Cuducos Date: Thu, 12 Mar 2020 11:27:06 -0400 Subject: [PATCH] Adds a task to rebuild the search vector From times to times Jarbas is missing the search vector. I know there is a scheduled Celery task to rebuild it from time to time (depending on environment configuration), but maybe having it as a fixed step after the update might better address this issue. --- contrib/update/update.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/update/update.yml b/contrib/update/update.yml index 8e3dbae74..813fcd9d1 100644 --- a/contrib/update/update.yml +++ b/contrib/update/update.yml @@ -103,6 +103,13 @@ environment: DATABASE_URL: "{{ lookup('env', 'DATABASE_URL') }}" + - name: run jarbas to rebuild the search vector + shell: python3 manage.py searchvector + args: + chdir: /opt/serenata-de-amor/ + environment: + DATABASE_URL: "{{ lookup('env', 'DATABASE_URL') }}" + - name: destroy instance hosts: 127.0.0.1