commit | d4b1da69e1b661b901f3aa3f55a5cb4731d263d0 | [log] [tgz] |
---|---|---|
author | Chris Broadfoot <cbro@golang.org> | Mon Aug 15 15:36:00 2016 -0700 |
committer | Chris Broadfoot <cbro@golang.org> | Mon Aug 15 22:54:46 2016 +0000 |
tree | 2fee8476f856fb1e508cc9a33e81f131a7afe541 | |
parent | 42330e7a99943d7f61f5eeacfc30ac6624ae310f [diff] |
playground: update deployment instructions Change-Id: I5a43957ee86c7a068440f8d9e45c247b5ef660d1 Reviewed-on: https://go-review.googlesource.com/27080 Reviewed-by: Brad Fitzpatrick <bradfitz@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 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.yaml --no-promote --version=17rc6
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 Then test that play.golang.org and tour.golang.org are working before deleting the old version.