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