commit | fde5780678ed6bf7a8972a9e31f95af5882e82cf | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@golang.org> | Tue Dec 19 12:43:27 2017 -0500 |
committer | Andrew Bonventre <andybons@golang.org> | Tue Dec 19 21:34:11 2017 +0000 |
tree | 53aeac686a560d06c98edfb8432d6c72f49278ce | |
parent | 9597859625cdb47fe289d95f9cc18ea335840545 [diff] |
Add custom flex runtime that uses Go 1.9.2 Update golang/go#21645 Change-Id: I08a868ba3bc946bcd9dbd945806868e2613baf67 Reviewed-on: https://go-review.googlesource.com/84756 Reviewed-by: Chris Broadfoot <cbro@golang.org>
This subrepository holds the source for various packages and tools that support the Go playground: https://play.golang.org/
To submit changes to this repository, see http://golang.org/doc/contribute.html.
# build the frontend image docker build -t frontend frontend/
# run the frontend docker run -d --rm -p 8080:8080 frontend
Now visit localhost:8080 to ensure it worked.
# build the sandbox image docker build -t sandbox sandbox/
# run the sandbox docker run -d -p 8080:8080 sandbox # get docker host ip, try boot2docker fallback on localhost. DOCKER_HOST_IP=$(boot2docker ip || echo localhost) # run go some code cat /path/to/code.go | go run ./sandbox/client.go | curl --data @- $DOCKER_HOST_IP:8080/compile
To submit changes to this repository, see http://golang.org/doc/contribute.html.
(Googlers only) To deploy the front-end, use play/deploy.sh
.
gcloud --project golang-org app deploy sandbox/app-flex.yaml --no-promote
Use the Cloud Console's to set the new version as the default: https://cloud.google.com/console/appengine/versions?project=golang-org&moduleId=sandbox-flex Then test that play.golang.org and tour.golang.org are working before deleting the old version.