This commit is contained in:
+4
-3
@@ -4,7 +4,7 @@ from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
from shared.datastore import connect_minio
|
||||
from shared.datastore import Datastore
|
||||
from shared.mongodb import connect_mongodb
|
||||
from shared.utils import check_env, setup_logging
|
||||
|
||||
@@ -34,12 +34,13 @@ setup_logging()
|
||||
collection, db, client = connect_mongodb()
|
||||
|
||||
# connect to minio
|
||||
minio_client = connect_minio()
|
||||
datastore = Datastore()
|
||||
datastore.connect()
|
||||
|
||||
# initialise application
|
||||
app = init_app(
|
||||
mongo_collection=collection,
|
||||
minio_client=minio_client,
|
||||
datastore=datastore,
|
||||
)
|
||||
server = app.server
|
||||
server.config.update(SECRET_KEY=os.urandom(24))
|
||||
|
||||
Reference in New Issue
Block a user