Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ITMO-NSS-team
FEDOT-Web
Commits
20cfd01f
Commit
20cfd01f
authored
3 years ago
by
Александр Абдулов
Browse files
Options
Download
Email Patches
Plain Diff
added env loading in init_db script
parent
cb610136
1 merge request
!60
added script for deploying mongo and script for starting with test_db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init_db.py
+2
-0
init_db.py
with
2 additions
and
0 deletions
+2
-0
init_db.py
View file @
20cfd01f
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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help