This change upgrades the deployment of blog to use the newer
Go 1.11 runtime. As part of that, the appengine build tag is
removed (it's no longer set by App Engine), and the GAE_ENV
environment variable is used to detect when blog is being run
in App Engine mode.
Set an environment variable in app.yaml to configure the
x/tools/godoc/golangorgenv package appropriately.
Modify the static file server to also serve /favicon.ico,
but keep static file handlers in app.yaml for improved latency
across global regions.
Updates golang/go#30486
Change-Id: I63ca78a075d94d43a40f0b963b5f6d0d8270c34e
Reviewed-on: https://go-review.googlesource.com/c/blog/+/165460
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
+ The app.yaml file needs to be in the same directory as the
entry-point Go files, so those are moved from ./blog to ./
+ Go files within the context article did not have the +build OMIT
directive, so gcloud would view them as files that needed to be
built at deploy time. Add the +build OMIT directive and use
the context package instead of x/net/context.
+ Switch to using a service instead of version and update app.yaml
to account for this.
+ Use 1.9 as the runtime.
+ Remove superfluous .gitignore
Change-Id: I7c886849b912bc7f5b67cd2791cb6986d93d5cc7
Reviewed-on: https://go-review.googlesource.com/114455
Reviewed-by: Russ Cox <rsc@golang.org>