在 Google App Engine 上验证/更改应用程序区域 [英] Verify/change application region at Google App Engine
本文介绍了在 Google App Engine 上验证/更改应用程序区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个 GAE 应用程序.
I'm creating a GAE application.
当我将我的 GAE PHP 应用程序设置为授权应用程序以访问我的Cloud SQL 实例,我收到以下警告:
When I set my GAE PHP application as an authorized application to access my Cloud SQL instance, I get the following warning:
App Engine 区域必须与 Cloud SQL 实例区域相同!
App Engine regions must be the same as Cloud SQL instance regions!
如何验证或更改 GAE 应用程序的区域?
How can I verify or change the region of my GAE application?
谢谢
推荐答案
您可以使用 gcloud app describe --project
命令来获取位置.设置后,您将无法更改应用程序的区域.请参阅此处.
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.
例如:
$ 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屋!
查看全文