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

Commit 81dd0e5

Browse files
committed
when building for runestone check for dyamic_pages = True
1 parent dab6a11 commit 81dd0e5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

runestone/server/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ def _build_runestone_book(config, course, click=click):
5959
print(e)
6060
return False
6161

62+
# If the click object has a worker attribute then we are running in a worker
63+
# process and **know** we are making a build for a runestone server. In that
64+
# case we need to make sure that the dynamic_pages flag is set to True in
65+
# pavement.py
66+
if hasattr(click, "worker") and paver_vars["dynamic_pages"] != True:
67+
click.echo("dynamic_pages must be set to True in pavement.py")
68+
return False
6269
if paver_vars["project_name"] != course:
6370
click.echo(
6471
"Error: {} and {} do not match. Your course name needs to match the project_name in pavement.py".format(

0 commit comments

Comments
 (0)