commit | 77a50d9ba9542c8679afe02ebc8c557cc04e2289 | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Tue Apr 26 14:28:10 2016 +1000 |
committer | Andrew Gerrand <adg@golang.org> | Wed Apr 27 01:12:48 2016 +0000 |
tree | 42cfc9a89b3e540b245ee69fbc6e7e3998178bfa | |
parent | 36170a5e81941c7e0ab52ecdefb027de57014b9f [diff] |
app: use app.yaml directive to redirect to HTTPS Change-Id: I8d24a60b37fb70ad57b76401dc5d7ce2afb4858f Reviewed-on: https://go-review.googlesource.com/22448 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/
# 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.
gcloud preview app run app/app.yaml gcloud preview app run sandbox/app.yaml gcloud config set project golang-org gcloud preview app deploy app/app.yaml --version play gcloud preview app deploy sandbox/app.yaml --set-default
# sandbox docker push golang/playground-sandbox gcloud preview container replicationcontrollers create --config sandbox/kubernetes/controller.yaml gcloud preview container services create --config sandbox/kubernetes/service.yaml
# sandbox docker push golang/playground-sandbox gcloud compute instances create playground-sandbox-vm --image container-vm --metadata-from-file google-container-manifest=sandbox/container-vm.yaml