简体   繁体   English

无法在Google Cloud Platform中运行我的Node JS项目

[英]Can't run my node js project in the Google Cloud Platform

I just clone my git to the Google cloud platform. 我只是将git克隆到Google云平台。 And Im trying to deploy it. 我正在尝试部署它。 As I type "gcloud app deploy" it says: 当我输入“ gcloud app deploy”时,它说: 在此处输入图片说明

And I have a file app.yaml and it looks like this: 我有一个文件app.yaml,它看起来像这样:

# [START app_yaml]
runtime: nodejs
vm: true

I also tried changing the directory but cannot find the repo dir.. 我也尝试过更改目录,但找不到存储目录。

Please help! 请帮忙! Thanks! 谢谢!

The error message indicates that the tool is unable to automatically detect the application's configuration file. 错误消息表明该工具无法自动检测到应用程序的配置文件。 Which could be caused by the now deprecated older generation of flexible apps configuration, using the vm: true statement. 这可能是由于使用vm: true语句导致现在不建议使用的较早版本的灵活应用程序配置引起的。 See cloud.google.com/appengine/docs/flexible/python/upgrading. 请参阅cloud.google.com/appengine/docs/flexible/python/upgrading。

You should use the current flexible app configuration. 您应该使用当前的灵活应用程序配置。 I'd also suggest passing the actual app.yaml as argument to the deploying command, auto-detection might not always work as one expects. 我还建议将实际的app.yaml作为参数传递给deploying命令,自动检测可能并不总是如预期的那样工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法在Google Cloud Platform上删除我的项目 - I can't delete my project on google cloud platform 如何使用Node js在Google Cloud中运行项目 - How to run project in Google Cloud using Node js Google Cloud Platform Node.js库 - Google Cloud Platform Node.js Library 谷歌云平台上的 Node.js 运行时 - Node.js runtime on Google Cloud Platform 将节点js连接到postgresql(谷歌云平台) - connect node js to postgresql (google cloud platform) 我无法连接到Google Cloud Platform中的弹性搜索 - i can't connect to my elastic search in google cloud platform 一个Google云端平台项目中的Google Compute引擎上可以运行多少个WordPress实例。 - How many WordPress instances can i run on Google Compute engine in a single google cloud platform project. 在Google云平台上定期运行node.js脚本的最简单方法是什么? - What's the simplest way to run a node.js script periodically on Google's Cloud Platform? 如何在 Google Cloud Platform 上的 Node.js 服务器上运行 Argon2? - How to run Argon2 on a Node.js server on Google Cloud Platform? 无法在谷歌云平台注册应用 - Can't register the app with the Google cloud platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM