在Google App Engine上验证/更改应用程序区域 [英] Verify/change application region at Google App Engine
本文介绍了在Google App Engine上验证/更改应用程序区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将GAE PHP应用程序设置为授权应用程序来访问我的
Cloud SQL实例时,我得到以下警告:
lockquote
App Engine区域必须与Cloud SQL实例区域相同!
如何验证或更改我的GAE应用程序的区域?
Thx
<您可以使用
gcloud app describe --project< projectId>
命令来获取位置。 设置后,您无法更改应用的区域。
请参阅此处。
例如:
$ gcloud app describe --project myapp-1337
authDomain:gmail.com
codebucket:staging.myapp-1337.appspot.com
defaultBucket:myapp-1337.appspot.com
defaultHostname:myapp-1337.appspot.com
featureSettings:
splitHealthChecks:true
gcrDomain:us.gcr.io
id:myapp-1337
locationId:us-central
名称:apps / myapp-1337
servingStatus:服务
I'm creating a GAE application.
When I set my GAE PHP application as an authorized application to access my Cloud SQL instance, I get the following warning:
App Engine regions must be the same as Cloud SQL instance regions!
How can I verify or change the region of my GAE application?
Thx
解决方案
You can use gcloud app describe --project <projectId>
command to get the location.
You cannot change an app's region after you set it.
Refer here.
For example:
$ gcloud app describe --project myapp-1337
authDomain: gmail.com
codeBucket: staging.myapp-1337.appspot.com
defaultBucket: myapp-1337.appspot.com
defaultHostname: myapp-1337.appspot.com
featureSettings:
splitHealthChecks: true
gcrDomain: us.gcr.io
id: myapp-1337
locationId: us-central
name: apps/myapp-1337
servingStatus: SERVING
这篇关于在Google App Engine上验证/更改应用程序区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文