Skip to content

Commit

Permalink
Adds a task to rebuild the search vector
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cuducos authored Mar 12, 2020
1 parent d1b4e16 commit d05d1d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/update/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d05d1d2

Please sign in to comment.