commit | a7c8105acd1256da001abe608357bebf1c83991b | [log] [tgz] |
---|---|---|
author | Chris Broadfoot <cbro@golang.org> | Fri Dec 16 23:48:38 2016 -0800 |
committer | Chris Broadfoot <cbro@golang.org> | Mon Dec 19 20:25:24 2016 +0000 |
tree | 4f39fc13cd179b72276df87bd7f0eb7da173da43 | |
parent | 759e43062bdb893b1c09828b11d981b38d952dfe [diff] |
sandbox: add env:flex configuration file vm: true is going away and less stable. Add an alternate configuration file that uses the new App Engine flexible environment. NOTE: the new environment currently has vastly different network configuration, so it's important it's hosted at a different URL for now. The module name is changed to "sandbox-flex" to reflect this. Change-Id: Iec3ed9bdb1d61f6aafd26350a01ad268adf3194e Reviewed-on: https://go-review.googlesource.com/34559 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.