Skip to content

Commit 923af51

Browse files
committed
removed the wsgi file. we ain't needing it anymore
1 parent 0bb0164 commit 923af51

File tree

2 files changed

+15
-61
lines changed

2 files changed

+15
-61
lines changed

zeeguu/api/app.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,21 @@ def serve_audio(filename):
146146
# We're saving the zeeguu.core.app so we can refer to the config from deep in the code...
147147
zeeguu.core.app = app
148148

149+
# Flask Monitoring Dashboard
150+
try:
151+
import flask_monitoringdashboard as dashboard
152+
153+
dashboard.config.init_from(envvar="FLASK_MONITORING_DASHBOARD_CONFIG")
154+
155+
from zeeguu.core.model import Session
156+
157+
dashboard.config.get_group_by = lambda: Session.find(request=flask.request).user_id
158+
dashboard.bind(app=app)
159+
160+
warning("*** Flask Monitoring Dashboard enabled")
161+
except Exception as e:
162+
warning(f"*** Flask Monitoring Dashboard not available: {e}")
163+
149164
# print(app.config)
150165
# Log the current git commit hash
151166
try:

zeeguu_api.wsgi

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)