Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit a0c6059

Browse files
committed
Support all configs
1 parent 1ced9f9 commit a0c6059

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runestone/pretext/chapter_pop.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ def manifest_data_to_db(course_name, manifest_path):
3535
DBURL = os.environ["DEV_DBURL"]
3636
elif os.environ["WEB2PY_CONFIG"] == "production":
3737
DBURL = os.environ["DBURL"]
38+
elif os.environ["WEB2PY_CONFIG"] == "test":
39+
DBURL = os.environ["TEST_DBURL"]
40+
else:
41+
logger.error("No WEB2PY_CONFIG found! Do not know which DB to use!")
42+
exit(-1)
3843
except KeyError:
3944
logger.error("PreTeXt integration requires a valid WEB2PY Environment")
4045
logger.error("make sure WEB2PY_CONFIG and DBURLs are set up")

0 commit comments

Comments
 (0)