Google App Engineの作業メモ

https://cloud.google.com/appengine/docs/flexible/python/quickstart?hl=ja

Python 3.7で簡単にWebアプリをデプロイする.

https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard_python37/custom-server

Always Freeの利用枠

GCP の無料枠 - 無料の長期トライアル、Always Free  |  Google Cloud

プロジェクト作成済みの段階からの手順

$ gcloud components install app-engine-python
$ gcloud app deploy
Services to deploy:

descriptor:      [/Users/tkoyama/research/cnfbox-srv/app.yaml]
source:          [/Users/tkoyama/research/cnfbox-srv]
target project:  [cnfbox-dev]
target service:  [default]
target version:  [20191231t235132]
target url:      [https://cnfbox-dev.appspot.com]


Do you want to continue (Y/n)?  Y

Beginning deployment of service [default]...
Created .gcloudignore file. See `gcloud topic gcloudignore` for details.
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 601 files to Google Cloud Storage              ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.
Setting traffic split for service [default]...done.
Deployed service [default] to [https://cnfbox-dev.appspot.com]

You can stream logs from the command line by running:
  $ gcloud app logs tail -s default

To view your application in the web browser run:
  $ gcloud app browse