updated to use new vis com class
CI Pipeline / Test (pull_request) Failing after 2m12s
CI Pipeline / Build and Publish (./Dockerfile.web_ui, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui) (pull_request) Has been skipped
CI Pipeline / Build and Publish (./Dockerfile.model, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/model) (pull_request) Has been skipped

This commit is contained in:
Brian Bjarke Jensen
2024-06-15 16:31:35 +02:00
parent b8061466ce
commit d537cdf11d
+8 -1
View File
@@ -4,6 +4,7 @@ from __future__ import annotations
import os import os
from .app import init_app from .app import init_app
from shared.data_store import connect as connect_minio
from shared.database import connect from shared.database import connect
from shared.utils import check_env from shared.utils import check_env
from shared.utils import setup_logging from shared.utils import setup_logging
@@ -17,7 +18,13 @@ setup_logging()
# connect to database # connect to database
collection, db, client = connect() collection, db, client = connect()
# connect to minio
minio_client = connect_minio()
# initialise application # initialise application
app = init_app(collection=collection) app = init_app(
mongo_collection=collection,
minio_client=minio_client,
)
server = app.server server = app.server
server.config.update(SECRET_KEY=os.urandom(24)) server.config.update(SECRET_KEY=os.urandom(24))