From 3edba52e87405cd529047c21f94be4454b05739d Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Sat, 29 Aug 2020 18:42:36 +0200
Subject: [PATCH] uwsgi-python: fix deployment of darlehen

---
 uwsgi-python/handlers/main.yml | 3 +++
 uwsgi-python/vars/darlehen.yml | 5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/uwsgi-python/handlers/main.yml b/uwsgi-python/handlers/main.yml
index 909b259..ed929f3 100644
--- a/uwsgi-python/handlers/main.yml
+++ b/uwsgi-python/handlers/main.yml
@@ -119,3 +119,6 @@
 
 - name: restart uwsgi instance pgadmin4
   service: name="uwsgi@pgadmin4" state=restarted
+
+- name: restart uwsgi instance darlehen
+  service: name="uwsgi@darlehen" state=restarted
diff --git a/uwsgi-python/vars/darlehen.yml b/uwsgi-python/vars/darlehen.yml
index 7c2a79f..ae10112 100644
--- a/uwsgi-python/vars/darlehen.yml
+++ b/uwsgi-python/vars/darlehen.yml
@@ -11,10 +11,7 @@ app_lang: python
 # Python specifics
 app_python_version: 3
 app_venv: "/var/www/{{ app.app }}/venv/"
-app_program: "app.py"
-app_callable: app
-app_command: ""
-app_module: ''
+app_module: 'app:create_app()'
 
 app_mountpoint: /
 
-- 
GitLab