tree: 6069447854a51efcb8fce97a754880b08c2d337f [path history] [tgz]
  1. static/
  2. .gcloudignore
  3. app.yaml
  4. build.go
  5. cron.sh
  6. dash.go
  7. handler.go
  8. index.yaml
  9. Makefile
  10. README.md
  11. ui.go
  12. ui.html
  13. ui_test.go
app/appengine/README.md

build.golang.org App Engine App

This is the code that runs https://build.golang.org/

Local development

To use production maintner data (for the GetDashboard RPC containing the list of commits, etc) and production active builds (from the coordinator), both of which are open to anybody, use:

go run . --dev --fake-results

If you also want to use the production datastore for real commit data, or you want to work on the handlers that mutate data in the datastore, use:

go run . --dev

That requires access to the “golang-org” GCP project's datastore.

Environment variables you can change:

  • PORT: plain port number or Go-style listen address
  • DATASTORE_PROJECT_ID: defaults to "golang-org" in dev mode
  • MAINTNER_ADDR: defaults to “maintner.golang.org”

Deploying a test version

To deploy to the production project but to a version that's not promoted to the default URL:

make deploy-test

It will tell you what URL it deployed to. You can then check it and either delete it or promote it with either the gcloud or web UIs. Or just ignore it. They'll scale to zero and are only visual clutter until somebody deletes a batch of old ones.

Deploying to production

To deploy to https://build.golang.org:

make deploy-prod