aboutsummaryrefslogtreecommitdiff
path: root/app.yaml
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2019-03-05 18:22:19 -0500
committerDmitri Shuralyov <dmitshur@golang.org>2019-03-07 18:39:40 +0000
commit45a20b0d69ef2b06d2edfd97210a0df9ffd7f829 (patch)
tree1746bfdf2f2701f353f7f92eeb147b6e4a15de8c /app.yaml
parent838ce51196a7e9f9bff83402caf4f678dc0f0d75 (diff)
downloadgolang-id-tour-45a20b0d69ef2b06d2edfd97210a0df9ffd7f829.tar.xz
tour: deploy with App Engine Standard on Go 1.11
This change upgrades the deployment of tour 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 tour is being run in App Engine mode. Set an environment variable in app.yaml to configure the x/tools/godoc/golangorgenv package appropriately. Factor out the static file handlers in local.go, but keep static file handlers in app.yaml for improved latency across global regions. Updates golang/go#30486 Change-Id: Ia5bc88aab34fd07bf6ff0785da831180f509156f Reviewed-on: https://go-review.googlesource.com/c/tour/+/165537 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'app.yaml')
-rw-r--r--app.yaml17
1 files changed, 6 insertions, 11 deletions
diff --git a/app.yaml b/app.yaml
index e6552eb..fcd8f17 100644
--- a/app.yaml
+++ b/app.yaml
@@ -1,12 +1,14 @@
service: tour
-runtime: go
-api_version: go1
+runtime: go111
-default_expiration: "7d"
+env_variables:
+ GOLANGORG_CHECK_COUNTRY: true
-handlers:
+default_expiration: "7d"
# Keep these static file handlers in sync with local.go.
+# They're here for improved latency across global regions.
+handlers:
- url: /favicon.ico
static_files: static/img/favicon.ico
upload: static/img/favicon.ico
@@ -16,11 +18,4 @@ handlers:
secure: always
- url: /static
static_dir: static
- application_readable: true
secure: always
-
-- url: /(.*|list|lesson/.*|compile|fmt|script\.js)
- script: _go_app
- secure: always
-
-nobuild_files: (solutions|content)/.*