debian-mirror-gitlab/workhorse-vendor/gocloud.dev/samples/appengine/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
651 B
Markdown
Raw Normal View History

2023-01-13 00:05:48 +05:30
# AppEngine Sample
This directory holds a simple "Hello world!" AppEngine app that uses
[server.Server](https://github.com/google/go-cloud/blob/master/server/server.go).
## Prerequisites
You will need to install the following software to run this sample:
- [Go](https://golang.org/doc/install)
- [gcloud CLI](https://cloud.google.com/sdk/downloads)
## Deploying
Run the following in this `samples/appengine` directory:
```shell
# Build the binary.
go build
# Deploy it to AppEngine.
gcloud app deploy
# Open a browser to the app.
gcloud app browse
```
Try browsing to the `/healthz/readiness` page that `server.Server` adds a
handler for.