move_images_to_minio #44
+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