Commit 20cfd01f authored by Александр Абдулов's avatar Александр Абдулов
Browse files

added env loading in init_db script

parent cb610136
1 merge request!60added script for deploying mongo and script for starting with test_db
Showing with 2 additions and 0 deletions
+2 -0
import os
import pymongo
from dotenv import load_dotenv
from init.init_cases import create_default_cases
from init.init_history import create_default_history
from init.init_pipelines import create_default_pipelines
if __name__ == "__main__":
load_dotenv("mongo_conn_string.env")
env = os.getenv('MONGO_CONN_STRING')
print(env)
client = pymongo.MongoClient(env)
......
Markdown is supported
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