-
Notifications
You must be signed in to change notification settings - Fork 7.7k
如何部署GAE APPID
Michael.X edited this page Dec 5, 2023
·
5 revisions
精简版,需要一定的探索精神才能看的懂。 请一定按照自己的需求更改配置!
-
1.绑定银行卡(Visa/Master)
-
2.开Build权限。
打开cloud build的权限,并将"App Engine"后面改成ENABLEDhttps://console.cloud.google.com/cloud-build/settings/service-account
-
3.下载gcloud sdk,安装
-
4.登陆 gcloud
打开命令提示符CMD,执行:
gcloud auth login
gcloud config set account ACCOUNT
切换项目:
gcloud config set project PROJECT_name
- 5.开始上传
回到命令提示符, 切换到 XX-Net/code/default/gae_proxy/server/gae, 输入:
gcloud app deploy
会询问确认上传,输入Y
,回车。
等3分钟左右部署完成。
部署结果大概长这个样子:
Services to deploy:
descriptor: [D:\Downloads\XX-Net\code\default\gae_proxy\server\gae\app.yaml]
source: [D:\Downloads\XX-Net\code\default\gae_proxy\server\gae]
target project: <项目名>
target service: [default]
target version: [年月日t时分秒]
target url: [https://<项目名>.appspot.com]
Deployed service [default] to [https://项目名.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
-
6.故障排除命令:
gcloud info --run-diagnostics
-
7.检查部署结果:
用已经翻墙的浏览器,访问 https://$appid.appspot.com 看到:
GoAgent 服务端已经升级到 python3 版本。
Version: 4.0.0
就部署完成了。