You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
website: update deploying sections in README files
Use the README in cmd/golangorg directory as the canonical location
for documenting the deployment process for websites served by that
command. The top-level README now redirects to it, just like the
README in tour directory.
Add more context on how the website uses tests to ensure that deploys
can be done safely.
While here, also shorten various URLs to use the new go.dev domain.
For golang/go#36707.
Updates golang/go#39687.
Change-Id: If5cf7a74b19830540b29612de37286c5f14244a1
Reviewed-on: https://go-review.googlesource.com/c/website/+/367994
Reviewed-by: Russ Cox <[email protected]>
Reviewed-by: Katie Hockman <[email protected]>
Trust: Katie Hockman <[email protected]>
Trust: Dmitri Shuralyov <[email protected]>
@@ -33,22 +33,14 @@ a change. However, it is not a strict requirement enforced by CI.
33
33
34
34
## Deploying
35
35
36
-
Each time a CL is reviewed and submitted, the blog is automatically deployed to App Engine.
37
-
If the CL is submitted with a Website-Publish +1 vote,
38
-
the new deployment automatically becomes https://go.dev/.
39
-
Otherwise, the new deployment can be found in the
40
-
[App Engine versions list](https://console.cloud.google.com/appengine/versions?project=golang-org&serviceId=default) and verified and manually promoted.
41
-
42
-
If the automatic deployment is not working, or to check on the status of a pending deployment,
The go.dev and golang.org web sites have a suite of regression tests that can be run with:
14
+
15
+
go test golang.org/x/website/...
16
+
17
+
Test cases that check for expected URLs, content, response codes and so on are
18
+
encoded in \*.txt files in the `testdata` directory. If there is a problem that
19
+
no existing test caught, it can be a good idea to add a new test case to avoid
20
+
repeat regressions.
21
+
22
+
These tests can be run locally, via TryBots, and they are also run when
23
+
new versions are being deployed. The `testdata/live.txt` file is special
24
+
and used only when testing a live server, because its test cases depend
25
+
on production resources.
26
+
27
+
## Deploying to go.dev and golang.org
12
28
13
29
Each time a CL is reviewed and submitted, the site is automatically deployed to App Engine.
14
30
If the CL is submitted with a Website-Publish +1 vote,
15
-
the new deployment automatically becomes https://golang.org/.
31
+
the new deployment automatically becomes https://go.dev/.
16
32
Otherwise, the new deployment can be found in the
17
33
[App Engine versions list](https://console.cloud.google.com/appengine/versions?project=golang-org&serviceId=default) and verified and manually promoted.
18
34
19
35
If the automatic deployment is not working, or to check on the status of a pending deployment,
20
36
see the “website-redeploy-golang-org” trigger in the
0 commit comments