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
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:
+8
-1
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
import os
|
||||
|
||||
from .app import init_app
|
||||
from shared.data_store import connect as connect_minio
|
||||
from shared.database import connect
|
||||
from shared.utils import check_env
|
||||
from shared.utils import setup_logging
|
||||
@@ -17,7 +18,13 @@ setup_logging()
|
||||
# connect to database
|
||||
collection, db, client = connect()
|
||||
|
||||
# connect to minio
|
||||
minio_client = connect_minio()
|
||||
|
||||
# initialise application
|
||||
app = init_app(collection=collection)
|
||||
app = init_app(
|
||||
mongo_collection=collection,
|
||||
minio_client=minio_client,
|
||||
)
|
||||
server = app.server
|
||||
server.config.update(SECRET_KEY=os.urandom(24))
|
||||
|
||||
Reference in New Issue
Block a user