diff --git a/uwsgi-python/tasks/apps/lehrpreis.yml b/uwsgi-python/tasks/apps/lehrpreis.yml index e5cb936d2daf8665f74724142b6bbfa23f46d20e..7645de9aa303ab9996dab871db3b9e30e5e6e542 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}}"