Giter Site home page Giter Site logo

gae-go-example02's Introduction

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:

go run server.go

or, build and run:

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

./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

./deploy-tools/create-version.sh bucket v1
gcloud app operations wait [OPERATION-ID]
gcloud app versions migrate v1 --service=gae-go-example02

gae-go-example02's People

Contributors

minimum2scp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.