Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/coordinator: expose multiple domains during local development
The coordinator now serves both farmer.golang.org and build.golang.org. It has been possible to access the build dashboard page during local development either by modifying source code, or /etc/hosts, but this is not convenient. Instead, use a hostPathHandler in local development mode which maps: https://localhost:8119/farmer.golang.org/ → farmer.golang.org pages https://localhost:8119/build.golang.org/ → build.golang.org pages Which is very convenient, and will become even better after the next CL unifies the header across the pages. This is based on the approach in golang.org/x/website/cmd/golangorg for serving multiple domains on localhost, implemented in CL 328013 by Russ. For golang/go#34744. Change-Id: Icd90c776db0898a797455cbb0dfb0fc038d050d2 Reviewed-on: https://go-review.googlesource.com/c/build/+/340432 Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
- Loading branch information