Skip to content

Commit

Permalink
OP-2053 - allow injection of AVALON_DB env var as a db
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Dec 14, 2021
1 parent a80ed0d commit 148bb47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,14 @@ def set_avalon_environments():
os.environ.get("AVALON_MONGO")
or os.environ["OPENPYPE_MONGO"]
)
avalon_db = os.environ.get("AVALON_DB") or "avalon" # for tests
os.environ.update({
# Mongo url (use same as OpenPype has)
"AVALON_MONGO": avalon_mongo_url,

"AVALON_SCHEMA": schema_path,
# Mongo DB name where avalon docs are stored
"AVALON_DB": "avalon",
"AVALON_DB": avalon_db,
# Name of config
"AVALON_CONFIG": "openpype",
"AVALON_LABEL": "OpenPype"
Expand Down

0 comments on commit 148bb47

Please sign in to comment.