commit | 73acb7d5edff110e3ea86ef0ab9de450f64721c4 | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@golang.org> | Thu Aug 31 11:08:23 2017 -0400 |
committer | Andrew Bonventre <andybons@golang.org> | Fri Sep 01 15:34:12 2017 +0000 |
tree | b0e9643af6d1a8ca634ebac5e9a074ce483bd69f | |
parent | a7f2a546aeec891478466453c8f8c09d6b4aef1e [diff] |
playground: allow CORS requests to /share Update golang/go#21691 Change-Id: I943e2fa260fe5e73407aeabec4d86448817626f9 Reviewed-on: https://go-review.googlesource.com/60690 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 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.