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

Commit af13fff

Browse files
author
Brad Miller
committed
minor tweaks to setting master_url
1 parent f477633 commit af13fff

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

runestone/common/project_template/pavement.tmpl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ from runestone.server import get_dburl
77
from sphinxcontrib import paverutils
88
import pkg_resources
99
from socket import gethostname
10+
from runestone import get_master_url
1011

1112
sys.path.append(os.getcwd())
1213

1314
# The project name, for use below.
1415
project_name = %(project_name)s
15-
# True if this project uses Runestone services.
16+
17+
master_url = '%(master_url)s'
18+
if not master_url:
19+
master_url = get_master_url()
20+
1621
# The root directory for ``runestone serve``.
1722
serving_dir = "%(build_dir)s/" + project_name
1823
# The destination directory for ``runestone deploy``.
@@ -44,7 +49,7 @@ options(
4449
# If ``dynamic_pages`` is 'True', then the following values are ignored, since they're provided by the server.
4550
'course_id': project_name,
4651
'appname': 'runestone',
47-
'course_url': '%(master_url)s',
52+
'course_url': master_url,
4853
}
4954
)
5055
)

0 commit comments

Comments
 (0)