https://github.com/minimum2scp/gae-go-example02
Hello world app on AppEngine Go / Deploy with AppEngine Admin API
https://github.com/minimum2scp/gae-go-example02
Last synced: 4 months ago
JSON representation
Hello world app on AppEngine Go / Deploy with AppEngine Admin API
- Host: GitHub
- URL: https://github.com/minimum2scp/gae-go-example02
- Owner: minimum2scp
- Created: 2020-01-23T03:41:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T20:21:13.000Z (over 2 years ago)
- Last Synced: 2025-01-07T04:41:54.384Z (5 months ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gae-go-example02
Hello world app on AppEngine Go / Deploy with AppEngine Admin API## Build / Run (local) / Test
### Prerequisites
- Go 1.11.x
- Set environment variable `GO111MODULE=on`### Commands
Run local web server without build:
```shell
go run server.go
```or, build and run:
```shell
go build
./gae-go-example02
```Test:
```
go test
```## Deploy to Google AppEngine by AppEngine Admin API
### Stage source files to Cloud Storage
#### Prerequisites
- Set environment variable `GO111MODULE=on`
- Google Cloud SDK is installed
* `app-engine-go` component is installed
* Project ID is set by `gcloud config set project [YOUR-PROJECT-ID]` or `export CLOUDSDK_CORE_PROJECT=[YOUR-PROJECT-ID]`#### Command
```shell
./deploy-tools/stage.sh bucket v1
```### Create AppEngine version by AppEngine Admin API
#### Prerequisites
- Google Cloud SDK is installed
* Project ID is set by `gcloud config set project [YOUR-PROJECT-ID]` or `export CLOUDSDK_CORE_PROJECT=[YOUR-PROJECT-ID]`
- Ruby is installed#### Command
```shell
./deploy-tools/create-version.sh bucket v1
``````shell
gcloud app operations wait [OPERATION-ID]
gcloud app versions migrate v1 --service=gae-go-example02
```