Skip to content

Commit 7817f81

Browse files
committed
Use port 4001 instead of 4000 when running locally
1 parent 930c6b7 commit 7817f81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We have verified this works using both Windows and Linux.
2121

2222
To build the static content for the site, run `./build`. This will run DocFX to convert the Markdown and YAML files into static content, under a top-level `_site` folder.
2323

24-
To serve the `_site` folder locally, you can run `./build serve` which will launch nginx in a Docker container, and serve the content [locally on port 4000](http://127.0.0.1:4000/).
24+
To serve the `_site` folder locally, you can run `./build serve` which will launch nginx in a Docker container, and serve the content [locally on port 4001](http://127.0.0.1:4001/).
2525

2626
_Important note: You must rebuild the site manually when making changes either to the site or the metadata. The nginx container merely serves whatever lives in `/_site`._
2727

tools/builder/targets/Serve.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public static async Task OnExecute(BuildContext context)
1616
if (!Directory.Exists(sitePath))
1717
Directory.CreateDirectory(sitePath);
1818

19-
await context.Exec("docker", $"run --rm --name api.xunit.net -p 4000:80 -v {sitePath}:/usr/share/nginx/html:ro nginx");
19+
await context.Exec("docker", $"run --rm --name api.xunit.net -p 4001:80 -v {sitePath}:/usr/share/nginx/html:ro nginx");
2020
}
2121
}

0 commit comments

Comments
 (0)