From e65b3c2caddd45abc57655ab7e12dcf0f356d452 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Mon, 22 Nov 2021 23:52:10 +0100 Subject: [PATCH] Create lehrpreis app tables with createdb.py --- uwsgi-python/tasks/apps/lehrpreis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uwsgi-python/tasks/apps/lehrpreis.yml b/uwsgi-python/tasks/apps/lehrpreis.yml index e5cb936..7645de9 100644 --- a/uwsgi-python/tasks/apps/lehrpreis.yml +++ b/uwsgi-python/tasks/apps/lehrpreis.yml @@ -25,3 +25,12 @@ when: git.changed notify: - restart uwsgi instance {{ app.instance }} + +- name: ensure data model upgrades are applied # noqa 301 + command: "{{app_venv}}/bin/python {{app_path}}/createdb.py" + args: + chdir: "{{app_path}}" + become: true + become_user: "{{app_user}}" + notify: + - "restart uwsgi instance {{app.instance}}" -- GitLab