LoginSignup
4
3

More than 5 years have passed since last update.

Google App Engine/Go

Posted at

シェルまたは Terminal で次のコマンドを実行して、Google Cloud SDK をダウンロードし、インストールします:

curl https://sdk.cloud.google.com/ | bash

Follow the prompts to install the Go App Engine package.

~/.bashrc ファイル(または他の適切なシェル起動ファイル)を編集して、goapp コマンドのエイリアスを設定します:

alias goapp=~/google-cloud-sdk/platform/google_appengine/goapp

シェルまたは Terminal を再起動して、環境の変更を反映させます。

次のコマンドを使用して Google Cloud Platform にログインします:

gcloud auth login

次のコマンドを使って Go 用 App Engine パッケージをインストールします:

gcloud components update gae-go

次のコマンドを使用して、ローカルの開発環境からアプリをデプロイします:

goapp deploy -oauth -application family1st-contact appengine-try-go

開発環境の起動

app.yamlのあるディレクトリに移動して

goapp serve
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3