我已遵循教程 https://cloud.google.com/nodejs/getting-started/hello-world (部署到 node.js 上的 Google Cloud Platform hello world 应用程序)并在最后一条命令之后:
$ gcloud preview app deploy app.yaml --promote
我得到:
正在将文件复制到 Google Cloud Storage... 正在将文件同步到 [gs://staging.first-server-1117.appspot.com/]。 更新模块 [默认]...失败。 错误:(gcloud.preview.app.deploy) 错误响应:[13] 托管 VM 无法托管在应用程序的区域中。 (e~)版本:20151103t135918.388305842753805715
即使未选择时区也会发生这种情况。
为什么会发生?或者如何解决?
谢谢。
最佳答案
项目创建于欧盟区,目前不支持托管虚拟机
While in Beta, United States only. European Union-hosted applications should not deploy Managed VM modules. (source: managed vms documenation)
解决方案是在美国区创建一个新项目。 确保在项目创建过程中展开高级选项,请参见以下屏幕截图:
关于node.js - (gcloud.preview.app.deploy) 错误响应 : [13] Managed VMs can not be hosted in the application's region,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33498824/