[英]Deploy node application to Google App Engine standard environment
Until december 2016, I was able to deploy node applications to Google App Engine standard environment with an app.yaml
looking like this: 在2016年12月之前,我可以使用如下所示的
app.yaml
将节点应用程序部署到Google App Engine标准环境:
runtime: nodejs
vm: true
api_version: 1
manual_scaling:
instances: 1
Now, when I do this to deploy to a new project, I get this error message: 现在,当我执行此操作以将其部署到新项目时,会收到以下错误消息:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Deployments to App Engine Flexible require 'env: flex' in app.yaml.
错误:(gcloud.app.deploy)INVALID_ARGUMENT:部署到App Engine Flexible需要在app.yaml中使用“ env:flex”。 The 'vm:true' setting has been deprecated.
'vm:true'设置已被弃用。
But I'm still able to deploy with this configuration for existing projects. 但是我仍然可以使用此配置为现有项目进行部署。
Has something changed recently in Google App Engine for Node.js ? Google App Engine for Node.js最近是否有所更改? (I don't know when reading the error message if standard environment is deprecated, or if for some reason it considers I chose to deploy to a flexible environment, and so I can't use
vm:true
because this option is deprecated for flexible environments). (我不知道在读取错误消息时是否不赞成使用标准环境,或者是否出于某种原因考虑是否选择了部署到灵活的环境,因此我不能使用
vm:true
因为为了灵活vm:true
不建议使用此选项环境)。
The vm: true
indicates you were actually deploying to the flexible environment (an earlier version). vm: true
表示您实际上是在部署到灵活环境(早期版本)。 The standard environment never supported node.js apps, see https://cloud.google.com/appengine/docs . 标准环境从不支持node.js应用程序,请参阅https://cloud.google.com/appengine/docs 。
Yes, there was a change in the flexible environment (all languages, not only node.js). 是的,灵活环境发生了变化(所有语言,不仅是node.js)。 See Upgrading to the Latest App Engine Flexible Environment Beta Release .
请参阅升级到最新的App Engine灵活环境Beta版 。 From there, explaining why your existing apps still work:
从那里,解释为什么您现有的应用程序仍然可以工作:
Applications created with vm:true
使用vm:true创建的应用程序
All applications created in the
vm:true
environment will continue to work for at least 6 months after the App Engine flexible environment becomes generally available.在App Engine灵活环境普遍可用之后,在
vm:true
环境中创建的所有应用程序将继续运行至少6个月。 At that point, all customers need to switch to theenv:flex
environment.那时,所有客户都需要切换到
env:flex
环境。
UPDATE: 更新:
Node.JS is currently available in the standard environment as well, see: Node.JS当前在标准环境中也可用,请参阅:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.