简体   繁体   English

将节点应用程序部署到Google App Engine标准环境

[英]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 the env: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.

相关问题 在Compute Engine上连接Redis时,Google Cloud App Engine标准环境节点JS连接超时 - Google Cloud App Engine Standard Environment Node JS connection timeout when connecting Redis on Compute Engine 无法从 App Engine Node JS 标准环境连接 Google Cloud MySQL 实例 - Not able to connect Google Cloud MySQL Instance from App Engine Node JS standard environment 无法将Node.js应用程序部署到Google Cloud App Engine - Unable to deploy node.js app to google cloud app engine React + Node / Express + Mongo App-无法部署在Google App Engine中 - React + Node/Express + Mongo App - Failing to deploy in Google App Engine Google App Engine Standard Node JS 如何运行构建脚本? - Google App Engine Standard Node JS how to run build script? 如何在 Google App Engine 标准环境中使用 Google Cloud Build 或其他方法设置环境变量? - How to set environment variables using Google Cloud Build or other method in Google App Engine Standard Environment? 尝试将Node.js项目部署到Google App Engine时出错 - Error trying to deploy Node.js project to Google app engine 在Google App Engine上部署Node.js,运行两次 - Deploy Node.js on Google app engine, running twice issue 如何在Google Compute Engine上部署节点应用程序? - How do I deploy a node app on Google Compute Engine? 如何将 Node HTTP/2 服务器部署到 Google App Engine? - How can I deploy a Node HTTP/2 server to Google App Engine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM