Commit 9aba32a4 authored by Lukas Böhm's avatar Lukas Böhm
Browse files

add flask_monitoringdashboard

parent 25423422
......@@ -5,7 +5,8 @@ __pychache__/
*.pyc
# data
home.db
*.db
*.sqlite
media/
data/
.env
......@@ -13,5 +14,10 @@ data/
# logs and temp stuff
*.tmp
*.temp
*.swp
log.txt
errlog.txt
# montoring dashboard
flask_monitoringdashboard*
......@@ -5,6 +5,7 @@ from redis import Redis
from rq import Queue
from dotenv import load_dotenv
from flask_migrate import Migrate
import flask_monitoringdashboard as dashboard
load_dotenv()
......@@ -23,6 +24,8 @@ app.jinja_env.globals['len'] = len
db = SQLAlchemy(app)
migrate = Migrate(app, db)
dashboard.config.init_from(file=os.path.join(basedir, 'flask_monitoringdashboard.cfg'))
dashboard.bind(app)
redis = Redis.from_url(app.config['REDIS_URI'])
task_queue = Queue(connection=redis)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment