Skip to content

Commit ac2feff

Browse files
committed
dev: Ensure HOST and PORT are stable when generating command doc
These are used in `nextstrain view --help` output, and setting them during development (e.g. for `make -C doc livehtml`) would otherwise influence the generated doc.
1 parent 3d5d2ca commit ac2feff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devel/generate-command-doc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ os.environ.update({
4646

4747
# Ensure we detect a browser for stable `nextstrain view` output.
4848
"BROWSER": "/bin/true",
49+
50+
# Ensure HOST and PORT are stable for `nextstrain view` output.
51+
"HOST": "127.0.0.1",
52+
"PORT": "4000",
4953
})
5054

5155
from nextstrain.cli import make_parser

0 commit comments

Comments
 (0)